Thanks everyone! What I'm getting as the main points are flashes and depth of field and tone mapping in post
Be cautious in trying to make it so simple that you end up writing a "formula" for sharpness.
Electronic flash is of short duration, just like a short duration shutter. Short duration minimizes camera shake and subject movement, which contributes to "sharpness'.
Depth of field is the slice of space that is in reasonable focus, and is dependent on the distance, aperture, and focal length of the lens.
Tone mapping is a post-capture editing adjustment that affects the appearance of the finished photograph.
Perhaps doing all these things to every photograph will improve your results, but doing only one of them will also improve your results.
1. lens quality (including every element that is between the sensor and the subject)
2. stop motion (shutter speed, tripod, higher ISO, good technique, flash)
3. editing (when you know what you are doing and why)