Cogs are the enemies — you defeat them. That's the whole loop of Toontown's combat.
They're the corporate robots you fight with gags in Cog buildings and invasions, and clearing them is how you earn merits, jury notices and the promotions that unlock better gags. The "for fun" framing is fair enough, since Toontown is a game aimed at younger players and the Cog battles are deliberately cartoonish: they get flattened, doused and dropped rather than anything worse.