I'm not saying you need a diversified portfolio, I'm just saying that the actual rate of return will regress to the mean of 4% given enough time. Obviously we don't know if that regime will hold forever but that's the nature of investing, predicting the future is very difficult.
I agree though that this is a very location-dependent thing to consider. Local renting rates vs property values is hugely important when determining if it makes sense economically or not. In your area you'd probably be taking a loss compared to renting until rents rise enough to make your mortgage look appealing and appreciation offsets those early losses, which could be a long time depending on the situation. And you may not want to do that at all even if the math looks ok depending on your risk appetite!
My original comment was just address shortcomings in the original post omitting benefits to home ownership, it's certainly not a cut-and-dry issue which is why I had problems with the post originally.