Sex is a (nearly) discrete, binary variable. Biological categories so often have fuzzy borders, though, and intersex is real.
Gender, with more inputs, is a continuous variable—but strongly bimodal. Its borders are even fuzzier.
~ Sex is the digital to gender’s analog.
— Heather E Heying (@HeatherEHeying) December 27, 2017