100% the other drivers fault.
As it says in the Highway Code you DO NOT overtake approaching or at a road junction on either side of the road, &/or where traffic is queuing at junctions or road works.
The other sections quoted from the H.C. where it says you SHOULD do this, that, or the other are immaterial in this incident.
DO NOT= Just that.
SHOULD= Advisory.