Apple can, possibly, spend more money in R&D than HTC, but it can't outcompete the whole industry.
HTC's move could be to convince telcos Apple's move hurts the whole industry (for AT&T, an HTC is no different from an iPhone and they really don't care which one you use as long as you are a profitable client). You can try to picture Apple trying to sell unlocked iPhones with no subsidies and trying to compete with every HTC and Motorola and Dell and Samsung subsidized by every telco.