MEXICO CITY — Hillary Clinton said Monday that she would not visit Mexico before the November election, delivering another setback to President Enrique Peña Nieto a week after he faced furious criticism at home for receiving Donald J. Trump.

In an interview with ABC News, Mrs. Clinton said she was declining the invitation from the Mexican president so that she could “focus on what we’re doing to create jobs here at home, what we’re doing to make sure Americans have the best possible opportunities in the future.”

Her decision is sure to prolong the condemnation that Mr. Peña Nieto has faced for his decision to meet Mr. Trump, the Republican presidential nominee, who has made criticism of Mexicans and Mexico a focus of his campaign.

Mr. Peña Nieto has struggled to portray the visit as a part of an evenhanded attempt to explain to both Mr. Trump and Mrs. Clinton, his Democratic opponent, how important Mexico is to the United States.