The difference between Windows and Linux is the targeting. The incidence of major Linux system compromises is far, far below that of Windows. Sure, there are reports and studies that show Linux has its share of security weaknesses. What matters though is the actual incidence rate of compromise.I just don't like "use Linux, it's safe" comments, but i'm out now
However, if you threw every hacker, malc0der and researcher at Linux, it is almost certain to have a dismal security result.
All IT security matters, of all kinds, are context-dependent. That being said, users are far more safer on average using Linux, MacOS or Chromebook than they are using Windows. To this day, the greatest security menace is the click-happy or negligent user - and not weak native or third party security.