Well, LH got the right race line to make the overtake and he was already ahead of Massa before the breaking point so he had the advantage, Massa in the other hand close the door to LH in almost an illegal way(race incident, but it still was a bit dangerous manoeuvre), both had chances to overtake, however LH had the advantage before the corner and therefore he had the line, Massa should have let him pass and then try and overtake, is a hard manoeuvre to see but it wasn't entirely LH's fault(which is weird, because is almost always his fault).