Apple iPhone can deliver better quality photos with low pixel camera. It is not the megapixel of camera which leads to better photos. It is the quality of the lens and hardware. Over the last few years, smartphone cameras have gone from being functional to something that will blow your mind. The latest iPhone has just a single lens and yet it can shoot videos in 4K, take beautiful photos with a bokeh effect and even allow you to scan important documents.
For many years, the number of megapixels has been a key factor for judging camera quality, but this is not true any longer. The new generation of cameras does not focus on the number of pixels but on their quality and performance.