Mac is every bit as vulnerable as Windows, just that hackers do not go after them. The stability of Windows has everything to with its stretch to be compatible with various hardware and software.
Eighteen years of history belies your claim. When are we going to get level of attacks you guys keep claiming? What is the magic number that will make hackers, who are interested in money, come after the 99% of Macs that are running bare naked without any anti-virus/malware protection in the wild, operated by people who as a rule are wealthier than the majority of Windows users? 50 million? 60 million? 70 million? Well, there are over 110 million Mac users on OS X and macOS right now and the number real OS X computer viruses in the wild, after 18 years of trying to create one, is STILL ZERO, and the number of Trojans in the wild that will infect a Mac with the assistance of its user is under 110, in 8 families, EVERY ONE OF WHICH the OS will identify and warn the user if he or she attempts download, install or run one of them! It takes an industrial strength stupid user to ever get infected by one of those Mac OS X Trojans. Even hacking a Mac requires assistance from a user or physical access to the computer. Trying to do it remotely, good luck without first getting some kind of malware onto the computer.
Your security by obscurity canard has been shot down so many times it is ridiculous. As I said, when and what number of Macs is going to attract the hackers to this "vulnerable" platform? The Windows Witty Worm from 2006 was written to attack all 18,000 vulnerable Windows computers in the world. . . and it succeeded in infected every single one of them less than 45 minutes after it was released into the wild, no matter where in the world those computers were located. Computer viruses were written to attack iPhones modified to run LINUX. . . all three dozen of them! So when are the hackers going to attack the 110,000,000 vulnerable Macs????
Even those Trojans that were released into the wild for Macs, if you check, you'll find the rate of infection listed on the security labs is "less than 100 computers", or often "less than 50" or even just a proof of concept. There were a TOTAL of SEVEN proof of concept worms and virus candidates, not a one of which ever worked! Why? A lack of vectors to spread and protected memory when they were placed on a Mac.
The purported 600,000 member MacBot turned out to be a HOAX promulgated by a Russian vendor of antivirus announced as an attempt to publicize their release of a business version of their Anti-Virus for Mac. Not a single infected Mac was ever found in the wild. . . not one. Many of the so-called infected Macs whose UUID the vendor had listed on the honey-pot intercept server as being members of the MacBot, had not even been sold or even manufactured yet! Other Macs (including two I had in my office) did not have Java installed a prerequisite to be infected and were not infected. One of mine had never, ever, been connected to the Internet, being a dedicated computer for a specific purpose. Ergo, HOAX.