The mistake is thinking that the fifteen million vote primary was ever pure democracy. It was an internal party mechanism, and the available candidates were strongly influenced by senior party leaders.
There wasn’t a 'coup' against democracy, but rather the party working within it's own...