Maybe Samsung is doing something right here...but the HTC One had an awful camera. I bought it for the low-light camera performance. But it had some sort of hardware flaw that caused low light photos to have a purple haze. HTC had a replacement program, which would have required me to go without a phone for weeks. So I got Verizon to replace my phone with a refurb, which was actually worse. I just sent the refurb back and kept the purple haze phone.
After this I switched to iPhone, not least because if it is defective an exchange just takes a trip to a retail store.