Many people have this misconception that the more megapixel rating in a camera the better quality photos it gives. But this is absolutely wrong. Mega-pixel rating describes only the size of the image, not its quality. Image quality is actually greatly affected by the image-sensor size installed on the camera. Larger the sensor better is the clicked image quality.
So, a 8-MP camera may outperform a 12-MP one, provided its image-sensor size is larger than the 12-MP one.
So, the next time you enter a shop to buy your next digicam, you know how to deal with the sales-man.