I don't think that's a common assumption, inflation means stricter monetary policy which slows growth for companies so stocks go down.
Real estate is not a good hedge against inflation, check out this video to see how there is no real proven hedge against inflation[1] (supporting papers in the videos description)