The Hungarians still qualify, though, as one of the best third-placed teams and will now kick off the knockout phase against Group D winners Serbia in Dunedin. Nonetheless, they were well beaten at New Plymouth's Taranaki Stadium, with Taiwo Awoniyi's brace no more than the African champions deserved for their overall dominance.
Manu Garba's charges were the better side throughout, nullifying four-goal forward Bence Mervo and providing a constant threat at the other end. They would have taken the lead as early as the 16th minute but for an incredible save from Gyorgy Szekely, who stuck out a strong right hand to beat away Awoniyi's powerful close range header.
The Europeans rarely threatened a comeback but did produce one effort of note a few minutes into the second half. Mario Nemeth was just a couple of inches away from a wonder goal, in fact, having taken aim from 30 yards and rattled the crossbar with Joshua Enaholo beaten.
However, the points - and second place - were secured in the 54th minutes when Awoniyi doubled his and tally. It was a goal that neither Attila Osvath or Akos Kecskes will want to watch again, with the Hungary duo having both gone up for the same header at the halfway line, collided and missed the ball entirely.
Awoniyi could hardly believe his luck and, though he still had some work to do, he did it in style, dribbling past a covering defender before rounding Szekely and tucking the ball into the unguarded net.