There are some advantages macOS can have but it depends on usage patterns and user knowledge:
- You don’t have to configure swap on macOS, while on Linux you can get into a situation where e.g. at install time you set up some default 2 GB swap but then it’s not enough and you don’t know that’s a thing that can be changed.
- You don’t have to configure compression for RAM or swap on macOS; on Linux you often have to know you can set up zram/zswap if you want it. Compression can make a huge difference for users that switch between memory heavy applications as long as they don’t literally switch every 5 seconds.
- On macOS, applications generally use the same frameworks e.g. for UI (because there is not much choice), and they can be loaded once and shared between all of them. Linux can share libraries too but users can run into situations where their applications use multiple different versions of Qt, GTK, etc. at the same time, and then you have stuff like snap on top that comes with its own copies of even basic system libraries. Containers also do this. As a Linux user you can avoid library bloat to some extent but “normal” users are not aware of it in the first place.