You don't ever need to slam on your brakes or speed up for yellow lights, that's the entire point of the yellow light existing instead of just going straight to red.
If you observe a yellow and can safely stop, then stop. If you can't safely stop, then don't stop.
https://www.usatoday.com/story/news/nation/2024/08/31/how-lo...