Both deserve to lose, one simply got lucky.Whoever loses the sprint deserves to lose the race, because he didn't try to prevent the sprint.
Unless it turns out one of them is bizarrely superior to the other in the sprint all of sudden for some reason.