Interestingly, in this case, it looks like the continuous line telling a person not to be successful had just ended. As you can see towards the end of the video, the solid no-pass line is visible before the curve. However, at the end of the curve, as it begins to straighten, oncoming cars get a broken line while cars heading for model Y cannot yet pass. So the oncoming car that almost collides with the Model Y was probably legally allowed to pass, but it’s a really bad idea to do it around a curve like this.
Either way, we don’t know whether the Model Y driver avoided the crash on his own or whether the car’s advanced driver assistance systems kicked in as well. What we do know is that being careful keeping control of the car at all times will save your life in situations like this. We also know that agile vehicles with at least respectable acceleration and a low center of gravity are definitely useful. SUVs have a tendency to overturn if you make a quick movement like this. Fortunately, it seems no one was hurt.