I’m not sure what you want is this,
[it might be something you already know]
If you want to overwirte the StateMachine animation with the AnimMontage, you have to add Slot ‘DefaultSlot’ Node between State Machine and Output pose.
I hope this helps you.