In several tangled races, Democrats are working out how much identity should influence who they pick to represent them.