As the finish approached, the idea of an official tie was off the table, although it is not clear whether the drivers knew that. I believe McLaren crossed the line ahead of Miles, rather than the alternative of McLaren crossed the line in second but was declared the winner by the "distance rule." And all the photos support that. In either event, it is beyond question that Miles in car #1 led McLaren in car #2 by approximately one lap as the final stint started. In the final stint, Miles slowed his pace dramatically (~10 sec./lap) just to allow McLaren to catch up for the finish line photo. Reportedly, he was furious at the order to slow for the photo op, and who could blame him.