So the real fight is what proportion of current output goes to old people. Private schemes try to ensure wealthy old people get the biggest slice. Public schemes are more vote driven. It doesn't make them Ponzi schemes.
It's also not just a pension fund as you can receive benefits well before 62. Death of spouse with under age children or permanent disability.
Now, this does not mean it's a great or even a good investment. But, the trade off of safety vs returns is not actually that bad assuming you live longer than average.
PS: Another way of looking at it is there are no 100% safe approaches to investing 10's of trillions of dollars. Your stuck leveraging GDP growth which is only slightly better than inflation and frankly that's what SS does.
However, social security and other government funded pensions are Ponzi schemes. The money you pay in is given to people who are retired at that time. The money you get out is paid by people who are working at that time.