If your goal for macro photography is to take a picture that is reasonably sharp at 12MP 2cm away with a magnification of less than 2, then yes, getting acceptable depth of field is a solved problem. Set your wide angle macro lens to F/22 and there you go.
If you have higher standards, then the problem is not fixed on DSLRs. But the iPhone doesn't do it either.
If you don't understand why using the CoC criteria for depth of field is incorrect on two cameras with vastly different sensor sizes, I can't help you. The only measure for depth of field that works across cameras with two different sensor sizes is the ratio of distance and aperture diameter, which determines the solid angle of light capture. You're the one that brought up physics, so actually look at the physics instead of using photographer's ready-made formulas without actually understanding them and where they break down.
As for the image that you replied to, it doesn't look any worse at all to the images in the post technically. If you look at the image of the lightning connector, it doesn't even have 2mm of depth of field at a pretty low actual resolution. You can say whatever you want as for the composition and artistic value, that's not what we're talking about.