D Gukesh outmanoeuvred Wei Yi in a difficult endgame that showcased his deep positional understanding.