Let us have some logic calculation here again. Nigeria Super Falcons beat Egypt and Zambia Beat Malawi yet Malawi and Nigeria qualified to the World Cup. How? Let see how it is happened.
The calculation started with Zambia, Nigeria and Malawi and Egypt has been eliminated since they don't have any point.
Malawi beat beat Nigeria 3-2. Malawi 3 points. Nigeria beat Zambia 1-0. Nigeria got 3 points. At this stage Zambia has no points. Please understand. And Zambia beat Malawi 2-1 in yesterday match and Zambia got 2 points in the match and Malawi got 1 points in the match. Now as Malawi add the 1 points to the former 3 points as they beat Nigeria, they got 4 points and Nigeria still standing with their 3 points and they beat Zambia 1-0. That is the H2H.
Malawi 4 points
Nigeria 3 points
Zambia 2 points. Eliminated.
And it is only 2 team from each group will qualify for the World Cup therefore Malawi and Nigeria are the two teams in group C to qualify in the world cup.
I am quoting these two because they are interested to know this. CryptopreneurBrainboss and igebotz.
Your calculations is wrong. I wasn’t so sure of it, I had to get help.
Proper explanation below; ⬇️
Malawi qualified because CAF’s tiebreak rules prioritize the head-to-head record among the tied teams, not the overall goal difference.
from ChatGPT
Here’s how it worked:
After the last group matches, the table was:
• Malawi – 6 points
• Nigeria – 6 points
• Zambia – 6 points
• Egypt – 0 points
Since three teams were tied on points, CAF ignored the matches against Egypt and created a mini-table using only the matches between Malawi, Nigeria, and Zambia. 
Those three matches were:
• Malawi 3–2 Nigeria
• Nigeria 1–0 Zambia
• Zambia 2–1 Malawi
Each team had:
• 1 win
• 1 loss
• 3 points
So the next tiebreaker was goal difference in the head-to-head mini-table, and that was also equal:
• Malawi: 4 goals scored, 4 conceded (0)
• Nigeria: 3 goals scored, 3 conceded (0)
• Zambia: 2 goals scored, 2 conceded (0)
With goal difference still tied, CAF moved to the next criterion: goals scored in the head-to-head matches. 
That ranking was:
• Malawi: 4 goals
• Nigeria: 3 goals
• Zambia: 2 goals
So the final order became:
1. Malawi – Group winners
2. Nigeria – Runners-up
3. Zambia – Eliminated
This is why Zambia’s superior overall goal difference didn’t matter. Once the three teams finished level on points, only the results and statistics from the matches among those three teams were used to separate them, in line with CAF’s competition regulations.