Yeah, the X-Men are based in some truly garbage understanding of genetics and evolution, but we don't focus too much on the science and the central theme of "people who are different should get along but also here's explosions" is universal enough to go ahead and ignore it.