Oscar Piastri flew past Lewis Hamilton with a daring move on the very last lap.