Mexico's 3-2 win over Martinique ensured a spot in the final eight for John Herdman's side.
Lucas Cavallini was an unstoppable presence in the first half. The Puebla striker scored three goals including a deft leaping backheel flick from a Jonathan David pass to make it 3-0. By the time Cavallini skied a second-half penalty following a galloping equine run-up, the scoreline was 5-0.
David now has three goals in the tournament after recording Canada's opener in the third minute. It was the earliest Canada has scored in its Gold Cup history, and for David, who completed his hat-trick in the 77th minute, that's now nine senior international goals in seven outings. Canada's all-time leading scorer Dwayne De Rosario tallied 22 goals in 81 caps.
It was the first time in Gold Cup history that two players recorded a treble for the same team in a match.