Dealing with height differences when retargeting animation on characters with IK setups

I mean if you added them for both in their bone hierarchy. The scale / height should not be a problem: