I wouldn't try to run Mac OS in less than 4GB, preferably more. Nor Windows 10. If you're going to try to fit into 2GB, run Windows XP or an appropriate Linux distro. Or Chrome OS.
In recent years, as memory has become ever cheaper, software developers have become very lax about controlling RAM usage. These days, even browsers are very RAM-hungry. Load a page with an active ad-tech engine running in the background and watch RAM usage grow and grow!
I remember when we had 50 users on a single mainframe (IBM 4341) with 4 megabytes of RAM. The apps were in assembly language, and the users were sitting in front of dumb terminals (3270s).
I suggest you try BRAVE browser.
It does a great job of filtering out third-party advertising on webpages.
Pages render much faster and Brave also does not track your browsing.
The pages will look a bit strange because there will be large blank spaces where the advertising was supposed to go but it does not bother me.
It is still a little buggy on my iPad and crashes once in a while, but it is worth it. It does not crash my iPad when it crashes.