Or the semi-third option; firewall the living hell out of everything with something you either wrote yourself or can read yourself. No guarantee there either but you can avoid the garbage fire that is a lot of this. I'm sure the NSA has exploits for everything tho.
And that third option is only technically available to at most 10 percent of the population, and most of them have neither the time ("day jobs") nor inclination to spend their time in that effort. And that is discounting the fact that the majority of the buggy appliances you encounter are developed by that very 10 percent in the first place.