system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Could a political party go against the primary results and nominate somebody else for the for the general election?

I have heard many people say that if Trump wins the primary the party wouldn't let him run in the general election because there is no way he would win. Could the party do this? Have they ever done it before?
gpt
The party's own rules would prevent this if someone got a majority of all the delegates (which is what happens in modern times). If nobody gets a majority, then the convention can get really interesting. For a while, it looked like that might have happened in 2008 between Obama and Hillary, but Obama had enough late primary wins to prevent that.