Sony phones have dedicated button (hold down to enter camera app, by the time phone is out of pocket you are ready to press it again to take the photo).
On Pixel 2, double press Power button to start the camera app; then use volume buttons to take the photo. Not as ergonomic as Sony, but still works.
I'm sure other phones have something similar.