Government pension is such a scam. When someone dies, the remaining pension up to age 100 should be transferred as a lump sump to their estate. Or perhaps the lesser of that, and the amount they paid into the ponzi scheme throughout their working years, adjusted for interest.
It's not a scam. It's the difference between annuities (longevity insurance) and savings.
If you wanted all pensions to provide a death benefit in addition to the annuity you'd need to either significantly reduce payouts to the living or significantly higher payments into the pension fund.