We can get really far off into the weeds here playing out “what if” scenarios but it really isn’t necessary.
Drawing your gun is what you do when you have no other choice and all your other skills and senses have failed to keep you or those you care about safe.
It is the last resort and to be used only to stop or prevent a deadly force encounter that you see developing.
Depending on your state it may even be lawful to draw your gun, even level it at a potential threat that has not yet used deadly force on you (think of being backed into a corner by a hostile crowd) to diffuse the situation but even there, it’s the last resort when all else has failed and you end up in a situation you could not, or failed to avoid.
To paraphrase Keven, the only way to guarantee you walk away from a fight unscathed is to avoid it.