There's something to be said for karma. In a commercial on April 24, Samsung compared the iPhone's camera unfavorably to that of the Galaxy S5. On April 25, word broke that Galaxy S5 owners are being forced to return or exchange the GS5 due to camera problems. That's gotta sting, Samsung.
Most of the 60-second ad (below) boasts about the GS5's features, such as the 5.1-inch HD screen, water resistance, and, of course, the camera. Comparing two images side by side -- one taken with the GS5 and the other with the iPhone -- Samsung says the GS5 "snaps photos with twice the resolution of the iPhone." That is correct -- the GS5 features a 16-megapixel camera, while the iPhone 5s has an 8-megapixel camera.
But, as most photographers will tell you, megapixels aren't everything when it comes to cameras. A multitude of factors play a role in creating a good image, including the sensor, the size of the pixels, focus, the lens elements, image processing, and so on. Samsung didn't lie in its commercial, but choosing only one aspect of the camera for comparison certainly isn't telling the whole story. (Technically, Samsung could say the GS5 takes photos with four times the resolution of the HTC One, which has a 4-Ultrapixel camera.)