And that's often a very difficult problem, because sex can be defined a number of ways.” The scientists discovered the XX and XY cells that differentiate between genders can actually behave in different ways.