You need to look at the entire picture and consider flash quality, lens quality, capabilities, and feel. I've owned a sony p50, Canon G2, Canon S50, and Olympus C2020 zoom. I've also used others including the Pentax Optio (forgot model), Canon s200, s400, and so on. If you were only looking at megapixels, out of those, you'd get the Canon S50, which isn't bad, but in actual use, I prefer my G2.
The G2's flash is a lot brighter and it illuminates more of the area. The quality of the pictures seem to be a better also. I take thousands of pictures and the G2, to me, just generates better quality images.
So, like anything else, see if you can demo a couple or borrow a friends and try it out.