"It's better to buy than rent" is a myth and not always true.