Oscar Piastri claimed the first Grand Prix pole of his Formula 1 career by edging out George Russell in China.