PCs are more secure, while Macs are safer.
Even though Macs may be less secure than Windows, there is significantly less malware targeted at Macs, so a Mac is relatively 'safe' for an average user.
On the other hand, if you're running the server for a bank - where you expect to get constantly hit by crackers looking for an exploit - Windows would probably stand up better than a Mac.