You said that the iPhone camera and hardware is behind, then, "When I look for a phone, I look for functionality and the best camera."
----------
There is a good amount of Mac software, just not a single Mac virus (at least not one that I've heard of) and very few malware in comparison. Why would real software makers but not malware *******s develop for Mac?
Here's the story behind my phone:
I'm more concerned with hardware specifications than a camera but that still plays a role in my purchase. I also like a large screen.
I was originally opting for a Nexus 4 (It has a quad core processor, 4.7" screen, 2GB of RAM) but the London Drugs kiosk I went to had no Fido ones in stock. They tried activating a Rogers Nexus 4 but there was issues so I couldn't. There were no other good smartphones available so I got the iPhone 5. Luckily, I was able to keep my Tiny Tower save and use iMovie trailers.
As for the virus issue, recently an ugly trojan affected around 600,000 Mac users. I can't remember many specifics, but this is why many new antivirus software programs are developed for Mac OS X, such as Kaspersky. Kaspersky, by the way, is excellent software. I use it on all of my main PCs.
The reason virus makers don't generally go for Macs is because the user base isn't as big as Windows and their expertise is already on Windows so it would be useless to switch to the Mac platform. They have more of an effect on the system that has the larger market share, and for a lot of the time Windows was quite a bit larger than the Mac market share. The more popular Macs become (It's happening) the more viruses that will be written for it. Once Mac OS X is in Window's position in market share, trust me, there will be a huge amount more.
Read this here: Windows is technically considered to be more secure for a few reasons: Windows is patched more often than Mac OS X, Windows has fewer published vulnerabilities and has more countermeasures against attacks.
The article I linked to above generally seems to weigh in support for the Windows side of things.