To beat dead meat
The act of doing something useless. Can also be a reference to erectile dysfunction
"What he's about to do is completely useless, he's just going to beat dead meat"
"He couldn't get it up, so he ended up beating dead meat"
"He couldn't get it up, so he ended up beating dead meat"