Experienced meditators probably have less earworms (explanation in the body of the post).
Thinking a thought is like watering a plant in a garden. Your attention is the sprinkler. The more you water a plant (up to a point, of course), the more the plant grows.
Similarly, the more you think about a thought, the more that thought network grows. The denser a thought network, the likelier it is that you will end up thinking about/through that thought network. There are more entry points and the paths are better paved.
In other words, thinking thoughts make it likelier that you will think those thoughts in the future. This can cause psychological rigidity.
However, psycholofical flexibility can be developed through mindfulness. In particular, I am talking about mindfulness developed through meditations like mindful breathing. In that kind of meditation, you start by noticing your breath. When you're distracted by something, you pay attention to it, but you return to the breathing. The point is to develop flexible attention. You choose what to pay attention to, even when your attention is pulled by something.
That is why I say that experienced meditators would notice earworms just like anyone else (after listening to the song or remembering it because of another related memory), but because they can choose not to pay attention to it and feed that thought network, there is a lower probability of having those networks reinforced. Their sprinklers can turn off with more ease than non-meditators'.
Meditators can choose not to feed the cognitive network. Non-meditators could find themselves feeding the network.
Meditation is all about being alone with your thoughts. The pretense of clearing yourself of thought is inherently wrong and it's moreso clearing yourself of "busy" thought that makes you keep track of time too hard.
That means people who meditate are likely to induce earworms anyways as those are not "busy" thoughts so they're perfect for meditation
Yeah, my (limited) experience of mediation would suggest that they'd still have earworms, but they'd not get so frustrated by it, by being able to avoid spiraling down "guh, I hate that song, where did I hear it? How long has it been stuck in..."
Yes meditation gives more understanding and control over the thoughts so as I call it It is easier to change channels because after some practice you get to find the remote control.