Car B has to give way to car A.
However, since car B is almost at the crossroad, the driver of car A should slow down slightly to allow car B to proceed first. Nevertheless, car B needs to assess the situation and try to read how car A will act.