Not so much, if you're in AMT-land (and it seems like the poster is).
But even so, I don't understand why people (you're far from the only one) say this. For every dollar you save in taxes, you're paying two dollars to the bank. How can that possibly be smart?
Whether to invest in Real Estate is an entirely separate question. And one that I also think is a poor choice in this age. I base that on the current price of homes relative to their historic levels. They're still expensive.