Also, it I think
meming is a bit of a stretch. Of all the desktop operating systems (macOS, Linux, Windows), macOS has had the strongest security push. E.g. integration of the secure enclave throughout the system for protecting secrets, read-only system volume, mandatory sandboxing for App Store apps, and requiring applications to request use of screen capture/camera/mic/address book, etc.
Sure, holes are found. Strong security is a long process of adding more and more boundaries (while giving the ecosystem some time to adapt to those boundaries) and fixing more and more logic/memory errors.
Regardless, macOS is probably the most secure desktop operating system out-of-the-box.