The reason people didn't vote for these two had little to do with being "center-right". Both of them were very unpopular before they were forced as candidate undemocratically. Democrats would have won with Bernie and their chances in 2024 would have been a lot better if they did a primary to pick a candidate people actually like and want to vote for. Using an candidate people hate will work if the party is far ahead in the poll, not when it's 50/50.
The left/right divide in American politics is a myth. Clinton and Harris are both establishment candidates. The only establishment candidate to have won a presidential election since George Bush Sr. in 1988 is Biden. And that was only because of Trump's first term, and he was losing his election before bowing out.
The Democratic Party has been putting forward establishment candidates since at least Jimmy Carter, the only exceptions being Bill Clinton and Obama. And notably, they both were, like Trump, a bit of a black swan in party politics.
Also both George Bush Sr. and Biden were vice presidents of extremely popular/successful non-establishment presidents (Reagan and Obama). So really, there hasn't been an establishment president winning election since Jimmy Carter.