HTC may have had a touch UI, but they didn’t have a capacitive touch screen (did the XDA use a stylus? I’d wager it did).
More importantly, Apple was the only company willing to:
* commit all their resources to a single UI and single phone
* write their own operating system for said phone to have control over its fate and optimize for that UI
* offer a sales experience where people could discover the phone, see how it worked, and get expert help, with sales people who actually knew about the phone and weren’t offering users the choice of three dozen competitors at the same time
This "Apple is only good at marketing" idea is vastly off the mark.
The camera on a $1000 iPhone is not good enough? For what? For whom? The cameras on mid range smartphones are amazing, these days. A $150 China phone or $250 West phone is great these days. It is basically adequate for a whole lot of use cases, including normal day to day usage.
Also, smartphones with multiple cameras are, in a way, unrealistic. There's quite some lack of realism in today's cameras, akin to autotune.
It is also not possible to take an objectively great photo. Everyone has different biases, interests, quality thresholds, etc. See e.g. [1] for a (result of a) blind test.
[1] https://tweakers.net/reviews/7566/blinde-test-smartphonecame...
Apple spent around 40-50m on the initial rollout, a sum completely unheard of in the industry. And they bested themselves every iphone release since.
Even today, closest contenders are far from that mark.