Raspberry Pi's official operating system, Raspberry Pi OS (formerly Raspbian), is 32-bit, which means that single processes can't use more than 4 GB of RAM. While there can still be some benefit from extra RAM (e.g. caching, multiple programs and tabs open), it does restrict how it can be used.