Not difficult to beat the iPhone camera.
Why does my iPhone 4S take better photos than my iPhone 7? Modern iPhones photos are smeary smudgy mess. Can always tell on Reddit or Facebook when an image has been taken with an iPhone.
Luckily using RAW mode helps, which means it's some lunatic software noise-reduction in newer versions of iOS that is the problem.