I am lucky to have both options at my disposal - I live in the city, commute to work (~45 minutes by tram, more if I walk, which I do). On the other hand, my parents live in the suburbs, backyard and stuff.
Both options have advantages.
During the lockdown, apartment was fine, but claustrophobic a little bit. Not many things to do. In the house, you don't even notice it. Especially now, during the summer, garden, fruits, vegetables, swimming pool.
On the other hand, living in the city offers more options, like socialising, finding things to do, people with similar interests, training, learning classes for whatever, etc.
Both options offer experiences. They talk about an experience of commuting ruining everything. But what about an experience of enjoying personal swimming pool? Eating stuff from your own garden? Kids running around happy, having a tree house versus being limited to the apartment?
As I said at the beginning - there's no silver bullet. It's about finding out what you like, what works for you, and then act accordingly (if possible).