@topazio I agree with other posters.
I also just want to empathize and say it does feel hard.
My oldest is almost 4 and started preferring his dad around 2.5. It has increased over time. It’s great. I love he loves his dad. I know a lot of it is I am safe and always there. It still feels sad...