You’re right, right now an apartment is a more affordable option for young families. A good house can cost several times more, and for young people who aren’t yet financially secure, it can seem almost unattainable. Taking out a mortgage and paying it off for half your life doesn’t always feel like the wisest decision either. If you really want to live in a house, I think it makes sense to save up some money first and try renting a house to see whether you actually enjoy that lifestyle. Live in both an apartment and a house, compare the experience and only then decide whether you truly need a house or whether an apartment is more than enough for you.
I would also say that it depends on the opportunity cost. Some people stretch themselves just to point out that they have a house and they will now end up slowing down others goals in their life, other goals like starting a business, investing, or even moving to another city for a better opportunities. For me, if purchasing a house limits my personal growth and flexibility, then it might not be the right move yet.
I also think it comes down to how you personally see owning a property, because some people see it as a long term asset and others just see it as a way to have some stability. So now my question is not just “Can I afford it?” but also, " is this decision that I am making going to make my financial life better in the long run?”
Personally, I don't like rushing myself to do things just because of pressure or age. Having your personal space is a good thing and a great achievement, but it should match your income stability and long-term plans not just you trying to please the society.