The iPhone doesn't include the Magic Eraser feature that Google introduced alongside its new Pixel 6, but there are apps in Apple's App Store for that. The ability to remove photobombers, make a landscape or cityscape without people, or just clear trash or clutter from an otherwise perfect shot is quite useful, and these apps make it quick and easy.
Computational photography sometimes relies upon information that might not be available later, such as raw image sensor data, LiDAR and infrared
Read more on screenrant.com