My point is that both are very vulnerable, precautions are what keeps you safe.
Did they really have viruses (of which for OS X there are very few and far between, to the point of lore) or trojans?
Anyone remember when you could click Cancel in the login screen and get access to the desktop? Good times. :)
If you're getting infected all the time using Windows, you're doing something stupid. The operating system provides the vulnerabilities, but you might want to reassess how you're using your software.
Or, you know, just switch to an OS where you don't.
http://www.macnn.com/articles/16/06/01/researchers.show.that...
http://www.zdnet.com/article/lenovo-rootkit-ensured-its-soft...
http://www.makeuseof.com/tag/now-three-pre-installed-malware...
However (1) this isn't realistic since so many issues are found with bloatware installed by vendors which you don't get on a Mac and (2) the severity of the recent mass release of zero-days by Wikileaks has really skewed the landscape.
Microsoft needs to do more to reign in vendors because if a brand new Samsung laptop takes 7 restarts just to update then something is off with the ecosystem.