I completely agree.
Tobi was not bad either but Kishimoto ruined his character in the war arc. I mean, it's not wrong that Tobi was Obito but the execution of his whole reasoning and hatred wasn't well imo.
Pain/Nagato on the other hand was a well written antagonist till the end, though people still can argue about the fact whether Nagato was convinced too fast by Naruto or not.
Nevertheless, far better than Obito or Madara (although Madara is one of my favo characters in Naruto).