There are a total of three races between the two cars. The second race got off to

 a good start with Tesla jumping in and Ferrari gradually closing in but it was too late. 

So that Tesla Model X for SF90 at 14142 miles per hour from 9615 and 14483 miles 

 per hour at 9893 seconds. But the Model X first crossed the finish line. 

When he entered the final race Ferrari immediately took the lead beating Tesla.

This is for Model X 14577 miles per hour from 9858 seconds per 9621 seconds

and SF90 times 14481 miles. Although

 Tesla performed well Ferrari won.