The number of megapixels a camera has is just one factor to consider when comparing the quality of smartphone cameras. While a 64MP camera can capture more detail than a 50MP camera, other factors such as the size of the camera sensor, aperture, and image processing software can also affect the quality of the images.
In general, a higher megapixel count can lead to sharper images with more detail, but it's not always the case. Factors like sensor size, lens quality, and image processing algorithms also play a significant role in the final image quality. So, while a 64MP camera may seem better than a 50MP camera on paper, it doesn't necessarily mean that it will produce better images in practice.
When choosing a smartphone camera, it's important to consider other factors like aperture, image stabilization, and overall image quality, in addition to the megapixel count. It's also helpful to read reviews and compare sample images from different cameras to get a better idea of their overall performance.