lets do this again - sex and gender are two different things.
gender -
gen·der
ˈjendər/
noun
noun:
gender
1.
the state of being male or female (typically used with reference to social and cultural differences rather than biological ones).
"traditional concepts of gender"
synonyms:
sex
"variables included age, income, and gender"
sex
either of the two main categories (male and female) into which humans and many other living things are divided on the basis of their reproductive functions.
We are discussing gender not sex.