persisting with doing or saying something despite continued unsuccessful results
I wanted to sort out this problem with him, but it was like banging my head againsta brick wall.
You can go on banging your head against a brick wall or you can try a different strategy.
See full dictionary entry for brick wall