What's more important: Build quality or Features?

I recently posted a question on which phone is better,the Galaxy S4 or the HTC One? I got a lot of mixed results but overall I think that people favored the HTC due to it's superior feel and build quality, screen and the beats audio. Personally, I've always been more of a Samsung guy but I wanted to see people's opinion.

I've done more research on the devices and have found out that Samsung wins in features but HTC has more favorable build quality.

So the question is, what's more important. Build quality, or Features?