I have an M2 Air 24GB/1TB that has been such a beast that I haven't touched my 16" Pro in months. I have four browsers running, with a ton of tabs in Brave (daily driver) and I'm sitting at 21/24GB utilization with all sorts of apps running (granted, Docker is not at the moment, but it still doesn't make it sweat). I had ~8 pro laptops in a row going back to the late 2000s, but Apple Silicon has changed how I work. A future 14" OLED that was similarly light might turn my head, but if I had to replace it today I'd just buy another M5 Air with at least this much RAM. [FYI I never installed Chrome after M1 came out. Brave has been rock-solid for over a half-decade now.]
24GB is definitely solid. 16GB is like my minimum recommended for any kind of Mac, but if you can go for more you should go for more. I think 24GB should last a good long while though.