Slamming on the brakes is a flaw. Even if every car on the road had the ability to respond instantly to the car ahead, being forced to brake hard still risks loss of control especially in bad conditions.
Also, having automatic emergency braking on all vehicles is at least decades out. It will never work on motorcycles or scooters or bicycles, period. It cannot be retrofitted onto existing cars. Requiring it for all new cars would require pretty hamfisted regulations. I expect human drivers to be widespread for at least the rest of my life.