Lewis Hamilton put on a tyre management masterclass, winning the 19-lap sprint by nearly seven seconds, ahead of Oscar Piastri and Max Verstappen.