I used to live in an apartment then decided to buy a house for reasons such as wanting to have a yard / outdoor space (wanted to buy a big dog among others), leave city life for suburban life for peace & quiet, family-proof (place where I’d want hypothetical kids to grow up in), etc. After experiencing both I prefer house over apartment.
House. But not in the suburbs. I’ve shared houses with lots of roommates, both rented and owned (well, with a mortgage) houses, in town not on the outskirts.
If the choice is apartment in the city or house in the suburbs, then apartment is the only choice because I don’t want to commute, want a lot of stuff around me not just miles of houses.