Jiraiya is a fucking beast went from being a nobody to a legendary shinobi though hard work recognized by one of the strongest ninjas in the world at his time (hanzo) while being trained by one of the strongest kage of his time (hiruzen). nagato was just a orphan who was given god eyes by madara and worked off that yet Jiraiya a mortal man was able to become stronger than him Nagato just got lucky killing Jiraiya
Jiraiya was not stronger than Nagato. Nagato at full health, like when he fought Naruto and Killer B, would absolutely crush Jiraiya. He already did, and that was at like 10% health .