a mug's game
Doing something so dumb that even your dog would laugh at you, and then you lose because of it.
He tried to play chess with a monkey. That was a mug’s game.
She bet her phone on a coin toss and lost. That was a mug’s game.
He tried to outsmart a computer and got beaten. That was a mug’s game.