Comment by cortesoft
It depends on how far from the intersection you are. If you can’t stop before the intersection, you shouldn’t slow down because you need to get through the intersection in time.
Those cars didn’t have time to stop safely. They would have had to slam on the breaks, which is very dangerous because the car behind you might not stop in time. Speeding up to get through in time is the right decision if you are very close to the intersection when the light turns yellow.
Speeding up is only the right decision because it's a poorly designed intersection.