Teams works similarly in browser tab and "natively". Slack was similar if I remember correctly.

You should check the memory use of that browser tab. You’re not saving much either way running in a browser or in Electron, which is effectively a browser.

I only ever use Discord in a browser window.