We consider local and nonlocal Cahn–Hilliard equations with constant mobility and singular potentials including, e.g., the Flory–Huggins potential, subject to no-flux (or periodic) boundary conditions. The main goal is to show that the presence of a suitable class of reaction terms allows to establish the existence of a weak solution to the corresponding initial and boundary value problem even though the initial condition is a pure state. This fact was already observed by the authors in a previous contribution devoted to a specific biological model. In this context, we examine the essential assumptions required for the reaction term to ensure the existence of a weak solution. Also, we explore the scenario involving the nonlocal Cahn–Hilliard equation and provide some illustrative examples that contextualize within our abstract framework.