This isn’t the driver’s fault, and autopilot is clearly an issue here. Look closely at the gif, and note that the lane doesn’t go away. It just jogs to the right. No merging was required, just attention to the (very poor) lane markers to know to move to the right.