An increasing number of Democrats are questioning whether their party’s commitment to diverse candidates, especially women, may lead to more political struggles in the Trump era.