buying an apartment instead of renting