Both of them.
In the beginning, where two driver introduced, it is clear that B already at the rear bumper of A. Despite of the fact that B got a better start (and A did notice that imo), A acted like nobody out there. Simply, not a good example of sportsmanship. In the same time, before the contact, B could still avoid this by lifting a little.