The biggest Muslim countries by population lie in Asia, not the Middle East. And even in the Middle East, Turkey, Syria, Egypt, Iran, Iraq, Libya, etc are very different from Saudi Arabia, Sudan or Yemen.

And electing a female leader does say something about men's attitudes. Trump was elected because a lot of white men hated Hilary. And they could never bring themselves to vote for a woman, in spite of sprouting a lot of politically correct statements on gender equality.