I have an iPhone SE 2 with pretty standard 12MP camera and as I was sitting on our porch and browsing the web I randomly enabled the main camera and took a shot of my sweatpants fabric (no joke here):
I was pretty impressed with the quality as I could see fibers etc.
Just 10 minutes later I attempted to take a few more shots at the same macro level. No matter how I tried I could not get even near if the shot above:
So I am puzzled as to what allowed my phone camera to take that perfect shot and then fail to capture it next time?
I was not using any special apps just standard photo app.
UPDATE:
I copied the EXIF data and I "think" there was in fact digital zoom used by the camera. But I am not sure auto focus is able to leverage that cause surely I was not using digital zoom myself: