Male sex and female sex is binary. Maleness and femaleness as a gender identity is a continuum. One can be high or low on the continuum. No one needs to be left out.
Bill Nye, is that you?
I've never heard anyone say 'gender' is anything other than a synonymous word for 'sex' until the last few years.