So many perspectives on this issue. Here's another, far less often mentioned one.
Per the IRS Tax Code, "Your sale qualifies for exclusion of $250,000 gain ($500,000 if married filing jointly) if the following is true:
You owned the home and used it as your main home during at least 2 of the last 5 years before the date of sale."
In many markets, it is possible to buy a fixer with a small down payment, live in it for at least two years while you fix it up, and then sell it for a profit. Your gain will then be tax free. If you buy the house right and make smart improvements, you can make back all the mortgage interest you paid and then some, plus pay no taxes. And yes, you can deduct the interest you pay while you're living in and improving the house. Rather a sweet deal, actually. Lather, rinse, repeat and you could be looking at FI earlier than you ever thought possible.