Why are they so hard to upgrade?
Apple is in sole control of which iPhones (et al) iOS upgrades published and when. They generally do so for several years after a model is announced, and every device can download the newer version on the same day. Even the 3GS got a cut down iOS 6.
For an Android device the decision is made by a combination of the manufacturer and (for phones) the operator. A device typically gets 1 or maybe 2 official upgrades beyond what it was sold with, maybe months after Google announced that version. Some get no official updates.
There's CyanogenMod etc. for those of us with the know how/confidence, but most people shouldn't/won't do that.
I've been once burned by HTC (Wildfire). One update after 3 months and that was it. Still runs Android 2.x. with countless major bugs, like 'when you click on one SMS message, it opens a completely different one'.
Is Samsung better in terms of update policy? Otherwise I will probably go with an iPhone this time.
It's very different now. If you buy a standard Android smart phone (not a low end / small screen device) it will be much faster and easier to receive updates.
"Every iPhone comes with iOS exactly as Steve Jobs intended, which means developers know precisely what they’re getting."
On Android, that's not the problem. All Androids, as uglified by OEM add-ons as they might be, are highly compatible with applications. All Androids running the same API level of Android, even the Kindle Fire, run all the applications that use those APIs. There are optional APIs that some apps depend on, but those dependencies are also completely unrelated to OEM customization of Android.
The problem is that "customized" Androids are hard to upgrade. That means that, while all the iPhones that can run iOS 6 will be running iOS 6, there are many many models of Android devices that will never be upgraded to Jelly Bean. And that reduces the value of a lot of the Android installed base relative to Apple products in the field.