While that's definitely true, maybe one should look at this another way.
$400/mo saved in a 0% interest bank account for 40 years = $192,000
$400 * 12/year invested at 10% (incl. inflation) for 40 years = $2.12 million
While $2.12mm in 2020 money is $440,000 in 1980 money (assuming 4% inflation), it's still much better than the alternative.
A couple of other points:
* Investing $400/mo earlier is relatively harder than $400/mo later in the 40-year timeline assuming compensation increased by the inflation rate but one keeps the invested amount ($400 here) constant. This is ignoring factors like salary increases later in one's career (not sure if that even generalizes for lower-income professions).
* I wonder if there's any study done tracking if there's actually a steady increase in spending consistent with the inflation rate for all individuals (with some stochasticity). Or, do people adjust the goods they buy and "outwit" inflation? For e.g., the biggest purchase one makes usually, a house/apartment, doesn't scale with inflation. Similarly, electronics actually get cheaper. So, apart from food, does spending actually track inflation?