Leaning on sand
Expression used when somebody is relying on something unstable to hold up his/her argument or point of view.
Guy: "Hey pal, I'd love to agree with you but you're clearly leaning on sand, there."
Pal: "Whatever guy, I know I'm right."
Pal: "Whatever guy, I know I'm right."