Both risk of collision as well as risk of injury / death if a collision occurs correlate heavily with speed, there’s literally no better factor than speed to consider. Of course, it’s not the only factor, that’s why we have safety and license requirements for vehicles and drivers as well.