I'm looking for a word that would convey the meaning of jumping on the bandwagon in an opportunist way.
So for example, Sara doesn't like Barbara cos of their own petty issues, but doesn't show the dislike. But this one time, Barbara is accused by a fellow student for being racist. Now Sara might not even believe the accusations, but she turns against Barbara and jumps on the bandwagon of 'canceling' Barbara, not because she believes the claims, but because it aligns with her dislike for her, and gives her satisfaction for her own ulterior motives.
I hope I've been able to convey the sense of the phrase. I think I know what it is, but just can't think of it.