One item people seem to miss in housing calculations is the time value of money. An example, I own a home worth approx 275,000. That money is sunk in my home (it's paid off). If I sold my home, I could make 4-5% per year off than money (that's $11,000 to $13,750) per year. That should come into your analysis also.
Yes it should, however the OP has not paid off a home yet, he is just wondering if he should buy one or rent.
So, he needs to buy one, then, once it is paid off and has a HUGE asset, he can determine what works best for him.
In the meantime he gets HUGE tax advantages, as you did, for purchasing a home.
and of course, even though you say you can make 4 to 5% per year off the money (equity inj your home) that is speculation, you do not know what will go up in value more, your home or your investments.
Never mind if your sold your home, you would no longer get tax break for property taxes.