Android was a victim of the NSO’s Pegasus because of WhatsApp, and possibly that only worked because Facebook negotiated with phone manufacturers to bundle dodgy pre-installed system apps outside the Google Play Store.
Apple’s iOS was a victim of the NSO’s Pegasus because of iMessages.
For me, that’s enough to completely steer clear of iOS altogether. I mean, the lack of customisation and control over my device was already enough, but that kind of vindicated it for me.