Eh, barely. Matchups make fights and when you look at then vs now it is barely comparable.
1.) The Democratic primary electorate is not the general electorate.
2.) She is running against Donald Trump as opposed to the full Democratic bench.
3.) She has since been elected to and served a term in the office of Vice President of the United States
4.) She is a woman and the political landscape for women has, uh, changed quite a bit since 2020. Yes, I think a lot of people intellectually knew it would by then (many did not though), but seeing Dobbs actually happen was something else entirely.
5.) Prosecutorial background was a tough rap in 2020. The zeitgeist on law and order has regressed to the mean since then; and again, she is running against convicted felon Donald Trump.
Joe Biden was a terrible presidential candidate until he wasn't. Same for Donald Trump. Just like every championship team in sports benefits from luck over the course of a season, simply being in the right place in the right time is a major element of a successful presidential campaign. I don't know whether or not that will ultimately be the case for Harris but we've clearly seen enough to say that she might be the right person, in the right position, at the right time to win this election.