Collision with merging vehicle

100% up to the driver joining the main road to give way - that is the legal bit.

Without being there or having dash cam footage then it is impossible to say whether you could have made the situation safer.