This seems both unjust and irrational.
Why? As a rule of thumb, humans start thinking about something when it doesn't work for them. And for gays in particular, the traditional structuring of gender roles has been deeply problematic, indeed even today there are many countries where gay sex is illegal. So it's no surprise that homosexuals have though more deeply about gender and its relationship with sexuality than those for whom it works.Foucault is intersting. In contrast, Butler's work is weak. She really doesn't have a meaningful handle on the relationship between sex and gender.
That's not how I read it. I read it as, Foucault and Butler's idea is unproven because it's based off of their anecdotal experience rather than based off of any scientific evidence.
Perhaps near-future advances in genetics and neurology will expand our definition of biological sex to explain gender identity. In that case, our current sex vs. gender distinction would simply be another way of saying "we don't understand how this works yet". There's a lot of this "transitional stuff" in science history, where we have credible anecdotal evidence that our previous understanding is wrong but don't yet know how to coherently explain it. (See: Greek attempts to explain the nature of matter; the infamous cholera map by John Snow; etc.)
That doesn't make the "transitional stuff" wrong: an idea doesn't have to have solid theoretical underpinnings to have merit. It does, however, mean we should continue searching for an explanation.
The idea that gender is separate from biological sex is very recent. When you examine its origin you find that it comes from Foucault and Judith Butler. Both were gay. It's unsurprising to me that that idea would come from that lineage. If you are gay you are confronted with a difference between what you feel and what society tells you from a very early age. In general straight people do not have that issue and would never consider drawing that distinction unless the concept is introduced to them.