Question: is beating a dead horse a phrase?
Answer: Flogging a dead horse (alternatively beating a dead horse; or beating a dead dog in some parts of the Anglophone world) is an idiom that means a particular effort is a waste of time as there will be no outcome, such as in the example of flogging a dead horse, which will not cause it to do any useful work.