Originally posted by biz-engineer Diffraction is my enemy
With respect, it's not diffraction that's your enemy, but rather your expectations
You've come up against an optical limitation that most people won't encounter, or won't care about if they do.
Matti mentioned focus stacking, and that's certainly an option if the use case allows. Otherwise, just focus at a distance where the most important elements in your scene are in perfect or reasonable focus.
No-one viewing your photo will care that some elements of your 20"x30" photo are out-resolved by the 300ppi print resolution. Seriously, I'd try to avoid thinking about print resolution and more about how your printed image looks when viewed as a whole, at a realistic distance. That's what really matters