Under UCI rules this is relegation as there was clear deviation that abrupted the sprint of other rider.
Nope, he neither obstructed nor endangered TJH, and then deviation is fully allowed.
Sprints
2.3.036 Riders shall be strictly forbidden to deviate from the lane they selected when launching
into the sprint and, in so doing, endangering others.
(text modified on 1.01.05).
5 Intermediate sprints and final sprint
5.1 Deviation from the chosen line that obstructs or endangers another rider or irregular sprint (including pulling the jersey or saddle of another
rider, intimidation or threat, blow from the head, knee, elbow, shoulder, hand, etc.).