Owning both an iPhone 4 and a Moto Razr HD, I'd say the design and build is nicer on the iPhone 4. I do think it looks better, but that's another aspect I'm not directly referring to.
For example, on the Razr HD, the glass is tapered at the edges. However, then it has a raised rim around it, forming a crevice with the glass, and that collects dust like mad. You wouldn't see that just looking at the pictures, but it's a design feature that doesn't make a lot of sense to me. OTOH, black anodized aluminum doesn't make much sense to me either, as it collects a lot of very obvious scuffs. Brushed aluminum would hide scuffs better.
BTW, the reason I picked up the Moto over the Samsung GS3 is not only because I like it much better, but also because on my carrier (Fido) it was essentially free. The GS3 was horrendously expensive, on par cost-wise with the iPhone:
iPhone 5
$179 on 3-year contract, with a higher monthly cost ($67/mo after negotiation).
No 2-year contract option.
Galaxy S III
$100 on 3-year contract, with the same high monthly cost as the iPhone.
Two-year contract option available with a mid priced plan ($56, no negotation), but with the phone at $400. (That's more than the Nexus 4 with no contract!)
RAZR HD
$50 on 2-year contract with a mid-priced plan ($56, no negotiation). (I had some promotional bux that covered the $50.)
Given those options, the RAZR HD is no-brainer choice. (The $56 and $67 plans are exactly the same.)
Since then, the GS3 has dropped to $250 on a 2-year plan, but it's still $200 more expensive than the RAZR HD.