Why investing can be better than repaying debt