You are both the unluckiest and luckiest person both at the same time.
Unlucky in that you wrote off your car but fucken lucky that the cops saw the accident. Almost no-one gets absolved of blame when they run up the back of someone and there's no better witness than a cop or multiple cops.