That's not true. If you bought a house in 2006 for $130K but can sell it now for $150K, you lost in inflation-adjusted terms. And unless you're inheriting hundreds of millions and no one in your lineage has to work another day in your life, you're still vulnerable to the underlying economic vulnerabilities.
I understand inflation and you gotta make sure you profit when taking inflation into account. I paid 240k in 2010 for my home. That's 330k today. I can easily sell for 550 right now because of where I live (county, schools, etc)
My point is that if you are inheriting a home you paid ZERO for, that's a win.