It’s true, and the strategy of climate activists in the early 2000s and 2010s was to do everything they could to make coal and other fossil fuels as expensive as possible: by reducing access to capital, increasing the cost of legal and regulatory hurdles, sometime delaying projects through physical blockades, etc etc.
Some utilities didn't have direct market pressures to close coal because they were regulated and the regulator allowed them to recover costs plus a profit on top.