In case you don't understand: obviously you still pay income tax. What you suggest would mean you now pay income tax on that $10M, which is going to be 40% or even 50% depending, far higher than corporate tax.
So with your suggested tactic the engineers get $2.55 million each. The rest, $4.5 million, is tax.
If those 2 engineers paid themselves $0, and instead paid the $10 million as dividends, they'd get 4.25 million each, and only 1.5 million would be paid as tax.
(Yes, this is a simplification, both situations are artificial and in both cases there'd be other taxes to pay, however, they'd be similar in both cases)
So with your suggested tactic the engineers get $2.55 million each. The rest, $4.5 million, is tax.
If those 2 engineers paid themselves $0, and instead paid the $10 million as dividends, they'd get 4.25 million each, and only 1.5 million would be paid as tax.
(Yes, this is a simplification, both situations are artificial and in both cases there'd be other taxes to pay, however, they'd be similar in both cases)