Xmen are about being outcasts and outsiders. At its core the comic reclaims that and empowers that, since in the xmen world being different can be a good thing, it is just something that needs to be learned, embraced, understood.
The Sentinels are a good metaphor for example. They are a lifeless force meant to systematically destroy that which is different. However, the future sentinels can also absorb powers and make them their own, a metaphor for cultural appropriation which is in the news. Harnessing of abilities also shows up as laboratory science in Logan.
The children in Logan are lab experiments, like many Black, Jewish, and Aboriginal kids were in history.
In First Class all of this works. It takes place in the 1960s which is all about Western society opening up, to women and to minorities. Raven's arc is to stop pretending to be someone she's not. Erik grew up in Auschwitz. Charles wants to reconcile and work with people but there are obstacles.
Etc etc etc etc etc etc.
Etc.