If he hadn't died, Pain never could destroy the village and was defeated by Jiraiya cause could kill 6 of them with the frog song and his SM, then the pain stories and the cycle of hatred following that never happened and a major part of the plot was never developed due to that. Therefore, Jiraiya's death was actually a "must" and a plot-no-jutsu