Except that they were assholes to each other in Secret Wars, until the last couple of issues. The X-Men hated the Avengers for perceived anti-mutantism, and the Avengers thought the X-Men were insane for siding with Magneto just because he was a mutant, because he was still registered as "villain" to everyone but the Beyonder.