What's your gender if you can't procreate with someone of either sex?
If you'd like to exclude such people from your definition, and restrict it to people who are (for want of a better term) "stereotypical" male or female, that seems like a circular definition.
Given the problems we see in society, this definition is clearly not good enough for everyone and not good enough to satisfactorily deal with the problems arising; I might wonder what use a definition is if it doesn't actually guide us in solving problems. Perhaps this definition must be compromised when encountering reality in these situations.