8GB is definitely not enough for coding, gaming, or most creative work but it’s fine for basic office/school work or entertainment. Heck my M1 Macbook Air is even good with basic Photoshop/Illustrator work and light AV editing. I certainly prefer my PC laptop with 32GB and a dedicated GPU but its power adapter weighs more than a Macbook Air.
This is true for part time or casual use but for all day work use including travel you get better build quality and far less problems with a pro grade machine. We spend the same on a macbook, thinkpad, surface or probook for our basic full time users.
While it may be a bit overkill for someone who spends their day in word, excel, chrome and zoom we save money in the long term due to reliability. There is far less downtime and IT time spent on each user over the life of the system (3-4 years). The same is true about higher quality computer accessories.