A while back I wrote a post on this very website about songs that I can't stand to hear. The reason I can't stand most of them is they get stuck in your head and lead to brain damage. Perhaps this is the answer that people like you and I that get "earworms" have been looking for. I have not officially tried this technique but it seems simple enough.