Cooper Flagg scored 45 points with eight rebounds and nine assists to lead the Dallas Mavericks to a 134-128 overtime win against the Los Angeles Lakers.