One way to think of this is how human moral frameworks change under extortion.
If someone says they will kill your family unless you steal gum from the gas station, almost every moral framework posits that you steal the gum, not because your intention is to steal the gum, but because your intention is to save your family.
Russia and Qatar are vastly different extortionate threats to the EU, therefore, it's reasonable that the decisions landed as they did.
"Don't buy gas from bad man" is not naively the operating principal here.
Lest I bring in Qatar's active antisemitism and support for Hamas and Al qaeda for killings of dozens of innocent Israeli folks?
Nobody from DW news would ever raise the issue of Germany buying gas from a brutal terrorist regime!
Even Ukraine keeps the Russian pipelines flowing