That's not a particularly great test, because every camera will be great outside in the sunlight, and those photos are some of the least technically challenging ones you can take. Even a phone from 15 years ago won't be that bad at it.
Modern computational photography does a great job of dealing with tricky conditions though.
iPhones always take "decent" photos even under tricky conditions, but they never take great photos. I would take 10 great photos over 100 decent photos myself.
I regularly take photos outside, at night, in ambient light with my Fujifilm X-Pro3 and 56mm f/1.2. I'm stretching the limits of it a bit, using high ISO and as low a shutter speed as I can get away with.
In the same lighting conditions, an iPhone will basically take 3-5 shots and composite them together in software. The result, predictably, is unusable for most moving subjects.
Modern computational photography does a great job of dealing with tricky conditions though.