The idiom is 'to flog a dead horse' and you need to use the word 'flog' not beat. Idiomatic metaphors like these need their specific words to make sense. It means that you are doing something that is wasting your time, cannot have a good result, a pointless excercise.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.