That’s a naive understanding of how court system works. While the law is written to be gender-neutral, judicial outcomes tell a different story.
Statistically, women often receive significantly shorter sentences than men for the exact same crimes, even when criminal history is accounted for. In family court, while the ‘Tender Years Doctrine’ has technically been replaced by the ‘Best Interests of the Child’ standard, the default outcome still overwhelmingly favors the mother in contested custody cases.
You cannot claim there is ‘no difference’ when the empirical data shows a consistent gap in how the law is applied to men versus women