No one was forced to vote for Clinton and nominating a loser of the primary would have set an awful precedent.
To muse he would have beaten Trump is like saying the Bills could have beaten the Eagles in the Super Bowl. Maybe they could have, but they didn't beat the Chiefs. It's not a forgone conclusion that he would have beaten Trump, but even so it really doesn't matter because he lost in the primaries