Mexico, which lost 2-1 to Panama last Sunday, climbed back into contention in heading into Sunday's Group A finale against Martinique in Denver. Those two teams are tied with 3 points each.
Panama, a 1-0 winner over Martinique in Thursday's first game at CenturyLink Field, leads the group with 6 points ahead of its Sunday game against Canada, which was eliminated.
Gabriel Torres buried a penalty in the 85th minute and Panama advanced to the quarterfinals of the Gold Cup tournament with a 1-0 win over Martinique on Thursday night.
Martinique, which beat Canada in its first game, can still advance out of the group stage, but will need to beat Mexico on Sunday.
Torres, who had three dangerous shots saved from the run of play by goalkeeper Emmanuel Vermignon, made good on his try from the spot, sending the ball to the back left corner. The penalty was given when Jairo Jimenez was taken down in the box by Sebastien Cretinoir.
Martinique nearly tied the game in stoppage time, but Panama goalkeeper Jaime Penedo pulled down a target ball in the box while crashing into Martinique's Kevin Parsemain.