Democrats could have won the US election if they’d learned from the struggle for equal opportunity