Raspberry Pi OS, is 32-bit, that can use only 4 GB of RAM. While there can still be some benefit from extra RAM it does restrict how it can be used.