What actually feasts on memory is the various chat apps and project management and knowledge-base management software, in-browser email clients, github pages, JetBrains IDEs.
You should keep these closed, whenever u can and then 8GB is enough comfortably. You will still receive Slack notifications on your phone, then u can fire up Slack to reply or have a discussion. Same with Notion or Logseq. You don't need to have a gmail tab open all the time either. The built-in Mail.app might just be enough for you too, which might eat slightly less memory. You can use Sublime Text or Emacs for editing, instead of VS Code or WebStorm. Install a browser-tab suspender extension. Download technical docs and read them via Dash (or whatever open-source equivalent it has). Have you looked into how much memory does a github.com page eats?
People getting their hands on 8GB M1 MacBook Airs in the early days were saying the memory management and performance were making it snappier than the 16GB Intel MacBooks.
That also brings issue with networking. Sure, if you are using the bridged (in Docker's parlance) networks, you won't notice. If you need to use host/ipvlan/macvlan, you will.
on linux you would have pretty much no overhead from running software in containers.