People voted for him in the primary based on the belief that he was and would stay in good health. The debate revealed that belief to be false. Post-debate, Democratic voters were massively (70+%) in favor of him resigning his candidacy. NOT stepping down would have been the UNdemocratic thing to do.
For reference, in February 2019, the RNC voted to provide undivided support to Trump. A few states outright cancelled their primaries.
All things considered, I’ll take an elitist party with a whiny progressive arm over a President and party that tried to stop the peaceful transition of power.
There is a degree to which this move is "less democratic", but we have to be careful. It is less democratic in the governance of the Democratic Party, but it's worth noting that the Democratic Party is not a polity. Running someone who can win instead of who the party chose might be a more democratic outcome with respect to the organization that matters more.
There's absolutely room for this to be taken too far. With mostly just the two parties, elites could (and arguably did, pre-'68) use these kinds of concerns as cover for excluding certain perspectives from power. That's something to watch for, but given the context it is obviously not what is happening here when the person being excluded is the current President, with the support of the party elites up to this point.
I tend to agree that for a party that spends a lot of time talking about the importance of democracy, we’re in fairly undemocratic territory here. However, you could make the argument that voters did kind of vote for Harris when they voted for Biden.
...What do you think your party has been doing to Trump challengers?