But that's kind of my point, there was a choice. Remember at the beginning of the war when various sanctions were being introduced nobody was talking about energy sanctions. There were vague promises about transitioning away from Russian energy but no concrete sanctions or proposals, and then as the pro-Ukrainian voices got louder and louder and Russian performance on the battlefield didn't match expectations it was decided that Russia must be thoroughly defeated in Ukraine and one of the steps was stopping Russian energy exports as a way to bankrupt the country. That's where the choice was, because if they consulted people who actually understood market dynamics they would have told them the same thing
@Ananda and I have been saying there is no way to stop Russian energy exports as supply is finite and you will end up paying higher prices which could drive your own economies to recession while doing moderate damage to Russian revenues, which have only recently been shown as last year high energy prices provided a cushion for the Russians.
Now imagine how much easier would it be to bring Russians to the table if there were no restrictions and Europeans were still buying energy like they did before the war, while all other sanctions and weapon supplies were roughly the same. There would be no Russian transition to alternative markets, they would still be highly dependent on capital inflow from Europe, and much more willing to compromise and accept various proposals as there would have been a mutually beneficial link between the two sides which if severed would be highly damaging to both and would serve as a foundation of trust between them.
My overall point is that European policy makers badly miscalculated (if they calculated at all) the damage they were doing to the Russians and the consequences they themselves would feel from this, while ignoring all the benefits for their economy and for future negotiations. It seems like their decisions were guided not by fact-based analysis and predictions but by passion-driven wishful thinking.