my personal machine is an 8GB M1 Air. I don't usually do dev work on it, but always have dozens of Safari tabs, often a bunch of Chrome tabs, a bajillion Slacks, and other apps. And I'll do light dev work on it, mostly for personal things. I even play the occasional game.
In other words, I think I'm well beyond what you're even describing. And while I do wish I had bought the one with more RAM, but usually I don't notice it. The swapping is that good.