Efficiently delete rows based on a condition that an element is present in both matrices

I have two large matrices A and B. I want a code that efficiently deletes any row which has at least one element which is the same in both matrices.

For instance:

A=[1 2;3 4]
B=[2 4;1 1]

Should return:

A=[3 4]
B=[1 1]