Even in animal husbandry, determining one from the other is called sexing and not gendering. Some fish and other aquatic animals change sex over the course of their lives - never a mention of gender.
Gender is a human social construct, albeit closely connected to sex. Loosely you could perhaps say that gender is the cultural and societal presentation of one's sex.