As a person who has built my own home gaming machines, I understand that mindset. As that same person who buys laptops for work and personal use I do not apply all of the same criteria to building as I do buying.The bringing up the build you own desktop was explaining the mind set of most typical enthusiast users. Which would me probably the majority reading this site.
It's not about the laptop, it's about the chip. He said the M2, not the MacBook Air, was crap. Lack of memory expansion isn't entirely about the chip, manufacturers make decisions.And the difference with your Core i7 HP laptop is that they do have models that you can upgrade the ram and models that you can't. Apple doesn't even give you that option! You are forced into buying all the memory at the start of your purchase.
What if the dev requires a higher end CPU or GPU? What then? You have the same problem. The companies I've worked for replace on a 3yr cycle anyway.So lets say my work specs and apple machine for me with 16GB of ram. Then for whatever reason 2 years later the main app I use the dev of it decides the new version of the app now requires 32GB . I now have to throw away that laptop and buy a new one because I cannot upgrade the memory?
And because you buy apple products that is acceptable to you?
Also, for the things I use my MacBook for, are not likely to have a significant increase in memory requirements for the next 3-4 years, maybe more. I'm likely to replace in 3-4 years, so I'll repurpose the current MacBook or sell it. It will still be a good machine 3 years from now for basic tasks like email, web surfing, word, excel, outlook, video streaming, music and so on.
I think in the case of the current 2 products that have M2s, which have a choice of 8-16-24G of RAM, I don't see that as a problem. I went 16G in my MB Air M1 because that was the max. If I bought today, I'd buy 24, it's only $200 more than the 16G option.