Beating a dead horse
aɪn toːtəs pfeːɾt raɪtən
In German Ein totes Pferd reiten
This idiom is a direct translation, highlighting the pointlessness of continuing a failed endeavor.
Example
"Es ist sinnlos, das weiter zu diskutieren, das ist wie ein totes Pferd zu reiten."