It comes down to where you are allowed to stop: on the right side of the road, on the shoulder or next to the sidewalk, and at the edge of the roadway only where there is neither a shoulder nor a sidewalk. Here there is a shoulder on the right, so the right thing is to pull onto it, as driver C did. You normally may not cross the edge line
, but you may do so to stop on the shoulder where stopping is allowed