Well it depends how you buy real estate. If you buy with cash it can be good option if you don't want to spend out money... It stops a little bit of taking crazy business ideas.
If you buy with bank loan is not good idea in my opinion.
Renting main residence? I would never do this. This is my...