Kinda boils down to film study and opponent tendencies.
If through film study you find out that the opponent's offense throws "quick game" on downs that are 3rd & medium, it may not make much sense to send 4 (or more) rushers because you know there's an 85% chance the ball is coming out of the...