In Sim, I believe the process first determines whether there's a K or BB, then determines hit/out, first checking for possible HR and then determining what kind of hit (single, double, triple). At that point, range is checked and in x # of plays changes the hit to an out, reduces an XBH to a single, or turns an out into a hit via error or poor play. There are differences between Sim and HBD obviously, but it probably works similarly with additional steps to factor in the additional hitter/pitcher ratings. That (and logic) would make range less important behind a high K and/or low Control P; IF defense more important for a high GB/FB P; and OF defense more important for a low GB/FB P. Logically, GB/FB would come between the K/BB check in concert with the HR determination, and would play a role in determining the type of hit/out. Range would kick in after that.
Years ago support provided the decision tree for Sim, but I don't recall ever seeing that for HBD. Given development by the same people, or off the same original engine, it's more likely to be similar where that makes sense. But the above theory is conjecture, not fact.