I once read somewhere that there is a UCI rule for this exact case, when the winner can't be decided through photo the two contestants do a 1vs1 race like 1 km from the line. This is repeated until there is a clear winner.