The sex that is determined by possession of two dissimilar sex chromosomes (e.g. XY). In humans and many other mammals this is the male sex. The heterogametic sex produces reproductive cells (gametes) of two kinds, half containing an X chromosome and half a Y chromosome. Compare homogametic sex.