There are no "mechanics," because nobody is claiming that knowledge somehow exerts a physical or causal force upon your will.
You keep trying to turn a logical contradiction into a mechanical one.
The issue is necessity, not causation.
If God infallibly knows that I will choose A, then not-A...