I would imagine way better than a human. Computers don't get scared.
Instead of scared, they crash :)
The biggest danger is an overreaction, which a computer is much less likely to do (if programmed correctly of course). Newer luxury cars already save you from yourself when you try and overcorrect, so I suspect this is already a solved problem.