Distance Matching Locomotion : Giving it a shot!

Rotation matching is not like distance matching . you don’t use rotation to drive the animation, you play the animations and you use its rotation curve to drive the root rotation.
here’s someone showing how to use root offset and rotation curve with turn in place. should be a good start for you.