If you have a result you need to happen, don't give the choice in the first place or only give the options that lead to the acceptable results. Giving an apparent choice and then negating it under the table isn't ok in my book.

There doesn't always need to be a choice. Sometimes things happen. It's best if those are transparent consequences of someone's actions and follow from the game rules and fiction. But transparent "at this point, X happens"(cutscene style, where the players know they can't interfere) is better than pretending they have a choice. But needs to be used sparingly.