AK - If you get 3 callers, your chance to win pre-flop is 37.56%. Against 2 callers, your chance goes up to 47.25%. And with only 1 caller, your chance is 64.51%.
AQ - 35.76%, 45.76% and 63.48% respectively.
So it is without doubt in your best interest to get at least 1 more to fold, if that means a shove then so be it.
And as you said it doesn't apply to every situation, there are always situations that are different, if you have been playing these opponents at this table for a while and have an idea of their play style, use this to make your decision.