OSX has a more solid track record, but Windows has also undergone a lot of change since the Vista rebuild to address many of it's more trivial exploits.
Anyone remember when you could click Cancel in the login screen and get access to the desktop? Good times. :)
My point is that both are very vulnerable, precautions are what keeps you safe.