Imagine this play:
Team A is winning 61-60 when regulation ends.
The Team B coach is flagged for a Technical Foul. A few seconds later, Team A coach is whacked as well.
Assess in the order they occurred, and Team A would shoot first. They hit both. Team B then does not get to shoot their foul shots.
Team A now wins by 3 instead of 1.