The sex of a child depends on the type of sperm that fertillizes the egg.
Gender of a child depends upon the kind of egg that fuses with the sperm.