Who would win in a fight Xmen or Avengers?

Difficult to say, but the Avengers have an ace in the hole with Hulk. Nothing can defeat Hulk. The more resistance he meats, the more force brought against him, the angrier and stronger he gets.