I think it's partly about risk and what will get a prosecutor off your back and what a court might say "c'mon, they've done enough."
By geoblocking users in France, they've probably blocked at least 95% of French users from being able to access their services, if not closer to 99%. By not having any nexus in France, it does reduce their exposure. Yes, Switzerland and France might cooperate on things, but going after Quad9 via Switzerland would involve convincing Swiss authorities that a) France is correct enough that Switzerland should want to comply, b) the steps Quad9 has taken aren't enough, c) France should get to enforce this against a company that's completely extra-territorial.
Yes, Switzerland could still side with France, but it definitely makes France's job a lot harder. Even within a country, people often "forum shop" for a district or judge they think will be more favorable. Forcing France to get the Swiss to agree means getting a second party to also be so strict (or want to cave for diplomatic reasons).
As you say, it's definitely not clear cut. It does make it harder. It does reduce their risk. It makes it more likely that France will just declare victory and move on. Sometimes it's about making it not worth the fight. Would a French prosecutor's career be better served trying to get Switzerland to agree to essentially enforce French law worldwide against a non-profit? Especially when they are geoblocking most French users already - basically complying with the ruling as much as technology realistically allows? I think they'd probably find that their efforts would be better spent elsewhere. If Quad9 were still serving DNS queries from France, a prosecutor would have a much stronger reason to go after them in Switzerland. At this point, it just feels like a prosecutor would see it as a waste of time - like worrying about the cost of an array offset in a loop when you're doing a network call every loop, the network call's cost is just going to be so much greater and you should be spending your time on what matters. That said, people aren't always rational.
It doesn't get them in the clear for certain, but I think it does reduce the risk substantially.
There is no prosecutor, these are not matters of criminal law. These are civil cases. Under the Lugano Convention, Canal+ can ask Swiss courts to enforce French judgements. That is why they can't just ignore this order. The question would become, after they geoblock but French people use VPNs to continue to resolve these domains, can Canal+ get a Swiss court to give even a single solitary fuck about this crap French law? I'm skeptical and I think its unlikely they'll pursue it that far.