Not sure about slack vs discord, but browser Gmail is almost certainly less memory hungry than Outlook. And that’s probably enough of a difference by itself.
VS Code (or rather VSCodium in my case) is also electron based but it's been relatively snappy in my experience - though I don't use a lot of third party plugins.