Raul Jimenez continued his goalscoring form at Estadio Rommel Fernandez Gutierrez, netting a brace.
Jimenez needed just eight minutes to score in Panama City before wrapping up Mexico's victory from the penalty spot after he had set up Edson Alvarez.
It marked Mexico's third win in as many games in Group B of League A as Gerardo Martino's men joined Honduras in the semi-finals.
Panama almost took a shock lead, Mexico goalkeeper Guillermo Ochoa making a low save to deny Gabriel Torres after an Alberto Quintero cross from the right.
However, Mexico opened the scoring as it dominated most of the first half.
In a move that started with Ochoa, Roberto Alvarado teed up Jimenez, who side-footed into the bottom corner from inside the area in the eighth minute.
Mexico had chances to double its lead in the opening 20 minutes, Alvarado and Jimenez squandering opportunities, the latter denied by Panama goalkeeper Jose Calderon.
The visitors continued to push for a second and they found it with 20 minutes remaining through Alvarez.
After a set-piece was partly cleared, Jimenez curled in a beautiful cross from the right for Alvarez to tuck in from close range.
Mexico was awarded a late penalty after Anibal Mello brought down substitute Uriel Antuna as the attacker ran onto a long pass.
Jimenez stepped up to convert the penalty, completing his brace and wrapping up a deserved win for Mexico.
Mexico will finish its group-stage campaign at home to Bermuda on Wednesday (AEDT), while Panama will next be in action in 2020.