Sex
There are some exceptions to this rule. Sometimes, the process of meiosis, which makes the sex cells, can go differently. This can result in a person having 3 X chromosomes, or 2 Y chromosomes or XXY instead of XY. Other times, the body may not follow exactly what their chromosomes are telling it to do.