can you buy an apartment instead of renting