Obama pushed back against notion that Democrats need to elect a candidate of a certain gender or race.