Defeat to Trump prompts Democratic soul-searching