This topic has come up quite a few times over the years on this board. A lot of the discussion around it has mostly been others opinions. I found this neat little graph online (instagram) from the New York Times that compares the two. Now keep in mind one's location will certainly have an effect on which one might make more sense, even in what part of you own country you're in.
https://i.ibb.co/q7Ltjx3/IMG-4098.jpghttps://i.ibb.co/ckMPpQh/IMG-4099.jpgI decided for myself that I would most of all like to have my own private house. Yes, it's expensive, but it's cool. It's your own plot, with a terrace, where you feel most comfortable. No one comes and dictates how you live. It's a thrill.