One thing to think about with Linux—where I think you're getting the wrong impression—there's something like fifteen billion Linux installations globally. Compare that to Windows where there's about 1.9 billion.
Yet for some painfully obvious reason, Windows has about an order of magnitude more serious, actively exploited vulnerabilities than Linux. For every serious, actively exploited Linux vulnerability (which includes basically anything in the tens of thousands of packages + kernel that are available and ready to install in any Linux install), Windows has vastly more. And that's just the stuff branded by Microsoft!
There's a whole lot of reasons why you're much more secure in just about every way on a Linux install, but believe it or not, you know what the single most important factor is, that prevents malware from being much of a problem? Default permissions!
It sounds silly, but whenever you download something on a Linux desktop you can't just execute it. You have to take an extra step and mark that thing/malware as executable before you can run it. It's a step where everyone stops to think, "hmm... Maybe I should double check this." 😁
This doesn't stop the truly careless, of course. But it's easily the biggest factor in preventing the sorts of "drive by malware" that people often get suckered into running.
Contrast this with Windows where literally everything is executable by default. You can change a .txt to an .exe and BAM! Windows will now attempt to execute it when you double click on that file (that would throw an error, but you get the idea).
The Waffle House Index needs to be updated to add a new code: Swastica Red. Locked Doors Due to Presence of Conservative Politician.
https://en.wikipedia.org/wiki/Waffle_House_Index