@arroz The “48 megapixel” iPhone sensor is really a 12 megapixel sensor. Most of the fine detail beyond 12 megapixels are of questionable quality. The post-processing is there to compensate for it, I guess. But optically, the 48 MP phones aren’t that much better at resolving detail than the 12 MP ones.
I use Halide to take 12 megapixel pictures with most of the processing disabled, unless I need some computational feature like Night Mode.