Cooper Flagg became the youngest player in NBA history to score 40 points in the Mavs' loss to the Jazz