Both the iPhone 11 and iPhone 12 have excellent cameras, but the iPhone 12 has some improvements that make it better for photography.
The main camera in the iPhone 12 has a larger sensor, which allows for better low-light performance and more detailed photos.
Additionally, the iPhone 12 has a Night mode feature that allows for even better low-light photography.
The iPhone 12 also has a dual-camera setup on the back which includes an ultra-wide lens, providing more flexibility for photography. So, overall the iPhone 12 would be considered to be better for photography.