Mexico is to have two women from its main political powers competing for the presidency for the first time after former Mexico City mayor Claudia Sheinbaum was chosen as the candidate for the country’s ruling party in next June’s election.

Ms Sheinbaum and opposition candidate Xochitl Galvez have insisted Mexico is ready to be led by a woman, but it will not be an easy path. On Wednesday night, President Andres Manuel Lopez Obrador’s Morena party announced that Ms Sheinbaum had defeated five internal party rivals – all men.

Mr Lopez Obrador has put women in important positions in his Cabinet and been a mentor for Ms Sheinbaum, even while being accused at times of male chauvinism. Mexico still has famously intense “machismo” or male chauvinism, expressed in its most extreme form in a high rate of femicides, but also daily in hundreds of more subtle ways.

Mexico has a strong “macho vote”, said Gloria Alcocer Olmos, director of electoral magazine Voice And Vote, adding that it is not exclusive to male voters. Ms Alcocer Olmos noted that in June’s gubernatorial election in the state of Mexico – the country’s most populous jurisdiction – the race was between two female candidates “and turnout was the lowest in history”.

The same thing happened in the state election in Aguascalientes in 2021, she said. “What does that tell us?” she asked. “That the people are voting for women? The reality is that no, and the saddest thing is that women themselves are not voting for women.”

Such low turnout in the June 2 presidential election is less likely because so much is at stake, Ms Alcocer Olmos said. There is also the possibility that the Citizen Movement party, which controls Nuevo Leon and Jalisco – two of the most economically important states – could nominate a male candidate who would attract that macho vote, she said.

Another question is what former foreign affairs secretary Marcelo Ebrard will do. As Ms Sheinbaum’s closest rival in Morena he did not accept the results of the internal party selection process, claiming there were irregularities. Morena controls 22 of Mexico’s 32 states and Mr Lopez Obrador remains highly popular, giving Ms Sheinbaum a strong advantage.

But Ms Galvez has emerged from virtual obscurity, helped largely by daily public criticism from Mr Lopez Obrador, to become the consensus candidate of the largely directionless opposition. Aurora Pedroche, a Morena activist who supports Ms Sheinbaum, suggested another problem should one of the female candidates win the presidency.

Given the greatly increased power and responsibility that Mr Lopez Obrador has given the military during his administration “How are they going to accept a woman as commander in chief?” Ms Pedroche said. “That scares me.”

While Mexican women have advanced to positions of political power in public life – in part because of required representation quotas for public office – women suffer from high levels of gender violence. Femicides – cases of women killed because of their gender – have been a persistent problem for decades.

Ms Sheinbaum represents a continuation of Mr Lopez Obrador’s social agenda, but without his charisma to take on an opponent in Ms Galvez who has an ease of connecting with people that is more reminiscent of the outgoing president. Independent Ms Galvez is representing the Broad Front for Mexico, a coalition of the conservative National Action Party, the small progressive Democratic Revolution Party, and the old-guard Institutional Revolutionary Party, or PRI, that held Mexico’s presidency without interruption between 1929 and 2000.

Ms Galvez caucuses with the National Action Party in the Senate but is not a member. Strategist Antonio Sola, who worked on the 2006 campaign of former president Felipe Calderon and later with one of the parties that helped Mr Lopez Obrador win, thinks Ms Galvez’s outsider image could help her.

With much of the world experiencing the end of a political era dominated by traditional candidates, the emerging figures are those who are “kicking the system”, he said.