In my opinion, macOS has the superior compromise between security and flexibility. Not as flexible as Windows, but at least its permission system provides security while maintaining access to advanced features.
Accessibility features/data query/you know:
Capture and modify keyboard input
Capture and modify mouse input
Get cursor position
Get window position
Get window size
Get list of windows
Get currently focused window
Acquire information about GUI widgets (something that will never be possible using Wayland alone due to design)
Color management (disregard if you consider ColorSync "additional software")
List macOS features that are impossible to do with today's Wayland (without additional software such as Portals, Pipewire, D-Bus, etc.).
Contributions welcome.