What is gender?

“When people are arguing about gender, quite often one of them is talking about sex, one of them is talking about social stereotypes, and a third one is talking about gender identity, and they’re all shouting at each other”