I have lived both there and there, so I will briefly describe what I think, I won't write about all the pros and cons.
As for houses, there are several pros: houses typically offer more privacy than apartments, they usually offer more space than apartments and they lead to a profitable investment if the property is sold later on. Cons: homeowners are responsible for maintaining their properties, which can be time-consuming and expensive, houses are typically more expensive than apartments, and of course, houses are often located in suburban or rural areas, which can lead to power outages in my experience (perhaps this is not such a problem if you buy a generator e.g.
generac.)
As for apartment pros: many apartments offer amenities like gyms, pools, or common spaces that would be expensive or impractical to have in a house, and apartment living typically requires less maintenance than owning a house. As for cons: apartments often have shared walls or common spaces which can lead to noise and renters may face restrictions on things like pets or decorating.