obviously the people’s choice for candidate
The people voted for Clinton over Sanders by a double digit percentage margin. It wasn't even close.
For comparison, Obama actually lost the reported popular vote in the 2008 primaries, but this includes a Michigan race that he dropped out of because Michigan moved its primaries forward in violation of DNC rules. Excluding Michigan, Obama won the popular vote by a 0.1% margin, increasing to 0.4% with estimated votes in states that had caucuses instead.
did it again with Harris
Biden won the 2024 primary by a more than 80 percent margin.
The people's choice was clear in both instances. When Biden dropped out, the people's choice for a replacement wasn't clear, but there was no path to rerun the primary, so they had to pick somebody who was closest to what the people had voted for in order to get closest to the people's choice, which was a continuation of the Biden administration.
