Nagato’s purpose was to show Naruto true pain in losing someone very close to him. The pain of loss is what helped Naruto to grow even further. They were both destined children, but I think Nagato chose the wrong path.
Furthermore, I think Nagato was definitely the strongest ninja, especially...