this is what the "gender is a spectrum" folks mean
sex is what you got in your pants, gender is everything else surrounding it
(who you are and what you like)
ignoring that separation gets you contradictions, such as:
Is it gay to be attracted to a male? in simplistic terms, Yes, by definition...