The belief shared by both Sunnis and Shias is:
that any righteous male Muslim can be chosen as caliph.
While there are significant differences between the two sects regarding leadership and authority, both recognize the legitimacy of choosing a caliph based on righteousness and the consent of the community, although they have different interpretations and practices surrounding that belief.