Rooting your phone isn't always possible. Microsoft controls both CyanogenMod, which is often the best opption, and of course Windows Mobile, but in many ways MS is actually more open source friendly than Google nowadays. (and both are obviously way more open than Apple)
Honestly, I'm rooting for Microsoft in the mobile space right now simply because the more competition there is, the more need for cross-platform standards.
But I'm also rooting for Sailfish and Firefox (assuming they try again when Servo is done). They all have interesting pros and cons.
https://cve.lineageos.org/kernels is their tracker for CVEs in non-deprecated kernels they ship in officially supported devices: no kernel they ship has 100% of CVEs patched, and both mean and median are about 49% of CVEs patched. And this is before we start even considering the firmware blobs that are shipped that haven't had security updates in years.