Hey here's a solution to the halting problem – always assume yes, and then figure out the edge cases. How do you do that? Well that's on you, I did my job.
In a distributed system that needs exactly-once delivery, implementing perfect idempotence is equally impossible.
That's why if you search for exactly once delivery you'll see a bunch of products claiming to have it (e.g kafka).
idempotence + at least once
idempotence isn't necessarily commutative.
In active / active setups, there are other strategies such as partitioning and consensus.