They are not orthogonal. If you can install Linux, then you can sideload apps on macOS. It might involve invasive XNU patching with a hex editor, but it can be done.
It's not that involved, by the way. There's a command that you run to turn off gatekeeper [1].
[1]: https://disable-gatekeeper.github.io/