At cross-purposes

To have opposite ways of doing something, to have opposing goals.

The two men are at cross purposes. They cannot agree about anything.