Couple thoughts on this...
If a computer has a physical defect, the industry-standard first option to ensure it isn't something stupid is to do a nuke-n-pave. If the problem persists beyond that, then clearly it IS some kind of hardware problem and should be treated as such. However, having worked in the tech industry in a support capacity, my reaction, depending on my ability to see that you had, in fact, *just* bought the computer would be to be sympathetic to your cause and assume a higher likelihood that it was an OOB failure.
Clearly, the way you were handled was inappropriate and incorrect. Sadly, many people who work in this kind of position (which is a cross-roads between a retail job and a computer tech job) lack the necessary skills, judgement and/or mentality to handle people correctly.
Ok, I've done my best impression of "Archangel" from Airwolf -- I've started off nice -- but as much as I have issues with how this guy at Apple treated you, I also have issues with what you've said.
You don't honestly expect to impress any of the rest of us with your out-and-out threat to leave the Apple camp for the security liability that is the Windows platform, do you? I mean, come on! Yeah, sure, this guy was a dick, but you're going to use that as some kind of "excuse" to go run an OS platform with all the negative baggage that Windows has, as though putting up with viruses, spyware, malware in general, registry issues, and general overall bad design is somehow... the better option? Give me a break. At least you could have said "I'm tired of how corporations such as Apple treat me, so screw it, I'm buying a DIY blank notebook and setting it up with Linux.", or take some kind of other moral/ethical high ground, but Windows?!?