A leadership election by Japan’s governing party could result in the U.S. ally having its first female prime minister or its youngest leader in more than a century.