@vnct0000 I mean, it depends on the situation.
Given an equivalent size, number of bedrooms, number of bathrooms, other amenities, and price, I'd pick an apartment over a house any day.
When you change that factor such that the house is less expensive but still has the same everything else...