Stan Lee has said he created the X-Men (and others) in part to tell a story about racism without talking about race. Instead of it being skin color, it was the (often invisible) genetic aspects that people used to define the in/out-groups.
The Watchmen, Ender's Game, and Starship Troopers all work for this one too.
Ender's Game also showed what happens - blame and recriminations - after the external threat is removed.. people go back to their old struggles, fights, etc.