umm its a little more sophisticated than the cost of bananas and milk.  Does it perfectly capture everything obviously not.   But the suggestion that stock market returns are a mirage because of inflation is absurd to say the least.

Inflation measures include the cost of housing, transportation, utilities, insurance, clothing, health and personal care and so on.  Do you honestly think that economists would ignore the single biggest expense when measuring inflation?