New research says it’s better to buy than rent—and it has nothing to do with money