The body resists binary gendering
You can’t compare gender and sex.
Sex is biological . Chromosomes, reproductive systems, traits of a species. All that gemology blueprint stuff of the mammals and other species.
Gender is social . It's cultural roles and concepts unique to human societies. It’s based loosely on sex, but it isn’t biological; it’s anthropological. Most importantly, it's entirely made up.
Gender can vanish if people stop recognising it and many people do. Sex only disappears in a mass extinction event.
Your body doesn’t “resist” gender — it can’t. It’s just a mammal husk. It just does what it's blueprint has on it. All it can resist is invasive entities on a biochemical level and a few environmental factors such a liquids and heat.
How much you let gender concepts influence your life for better or for worse is entirely up to you. Don’t drag biological sciences into it.