They both had at least one crash each towards the end of the lap where they were nowhere near each other.
If they would have not wrecked just that one time, either of them would have had a 3-5 second lead over the other at the finish line.
That little tap in the last corner was meaningless. Tessman (or the White/Black/Purple car) seemed to deserve that win more anyways. The other car was flipping all over the place.