Dealers sell cars as new all the time that had some damage during transport - and they are allowed to do so. An accident may be a different matter, depending on how severe. At any rate,
1. they were pro-active and contacted you,
2. you got a brand new car.
I think the dealer acted great and you came out well.