First of all, I have no idea what's going on between these two photos, clearly tons of processing of the image from Xiamoi.
Second of all, what are you trying to prove with 2 examples, with no clarification on how you took the pictures, what settings you used etc.
I have an iPhone 11 Pro Max and my photos do not look as crap as the one you have in this example. Again, it sucks that the stock photo app on iPhone can't access the RAW photo (I don't really feel a need for it but it would be nice to have the option straight out of the box.) But yeah, here's 2 untouched photos I've taken with my phone for reference. (I did have to convert from HEIC to jpg to upload them here so have that in mind).
I also uploaded the info about the two shots from Bridge. The one from Dec 28 is the outdoor shot btw.