Real estate can make sense as an investment but most people aren't in a position to treat their primary residence like one.