I know the Eurosport/GCN announcers kept mentioning that Pidcock was losing time in the pits, but I think what they really meant were the muddy sections before the pits on both halves of the course, including when he wasn't pitting.
Based on my view of the race, WVA and MVDP could have left Pidcock behind on the last two laps, but WVA had no interest in pushing on and riding on the front and MVDP didn't care to drop Pidcock if he didn't also drop Wout. The lap times illustrate this, to a point.
That's not to take away from the tenacity shown, but I think if either of Wout or Mathieu was not in the race, or if Wout rides on the front just once or twice on the finishing straight where Pidcock kept catching up, Pidcock doesn't make it to the sprint.
View: https://twitter.com/ammattipyoraily/status/1608885098296020994