What do you mean with HTC? HTC Wildfire is weaker than iPhone. HTC Desire HD, for an example, owns iPhone 4 in every way.
You see the thing is the operating system. Android OS is the best mobile OS out there, though apple fanboys will always scream otherwise. It's far more customizable, supports Flash, has proper multi-tasking, supports microSD cards, widgets & scrollable screens and so on.
Of course apple fanboys are all like "apps dude, we got soooo many apps" Which doesn't matter one bit. Android is open source which means there are many more free cool apps. And seriously name an iPhone app I bet I can find it on Android Market, or at least an equivalent.
Since you haven't defined which HTC phone you are comparing to it's harder to say, but HTC Desire / Desire HD / EVO 4G will easily outperform iPhone 4 in every way. As well as Samsung Galaxy S, which also runs on Android.
If you want a real smartphone that won't leave you penniless (they're still quite expensive) go for one of the phones I mentioned above.