But that's just it, China found their own way in! I don't think it's obvious which method is less effective. iPhones were compromised until reboot, and became reinfected as soon as the user next visited the malicious website—which a government can compel people to do frequently. That's still better than Android, but on Android, users knew they were being tracked. iOS users did not. (And of course, because iOS is locked down, it's harder to inspect your phone for signs it's compromised.)
If China hadn't found an exploit, do you think they would have given up? I think they would have required iOS users to carry dedicated trackers. Or just surveilled them more heavily.
Software restrictions don't impact the powerful, who have access to alternatives. They impact the average user, who has limited reserves of money, knowledge, and time.