Democrats are gearing up for a bruising presidential primary as they argue over how to rebuild a winning coalition.