My dd isn’t even 2 yet and we have this dynamic, too. She’s fine with me (mom, btw) 1-on-1, but as soon as daddy is in the picture he is ALL she wants (I.e. “go away mommy” or “no mommy—daddy” are frequent phrases). It hurts! I totally get it. I’m the rule-enforcer and just generally less silly, so to a two year old I guess it makes sense and I try to see it from that vantage point. I’ve also done the following, which have helped:
1) Have a conversation (ok, a few) with DH are: what to do if she starts being rude to me. HE is now the one that corrects her, not me. That’s actually helped.
2) Encorage DH to do some of the less fun stuff—tooth brushing and potty time (were potty training) are two things that come to mind. Now I’m not the only one that does “torturous” stuff.
3) Maintain perspective. My dd is still young, so I’ve got years of this ahead of me I’m sure. But I’m trying to play the long game—one day she’ll be a young adult and hopefully see how hard I’m working to help her grow into a good person!
So yeah OP you’re not alone! I was actually just thinking about a similar post myself; it’s nice to know I’m not the only one in this boat.