They're both partisan presidents in a partisan era, who got elected by mobilizing their base and ran into trouble by overestimating their mandates.
Liberal and conservative variations on the same theme.