I think it depends on the type of "troll" tbh. The traditional kind, looking to get a rise out of people for amusement? Sure, they need you to interact, and starving them of that attention kills the point. But nowadays we also use that term for people trying to shape public discourse in a dishonest fashion, such as when governments attempt to manipulate foreign public opinion, or politically motivated people pretend to be a different position in order to discredit it.
These kinds are slightly different I think, because their goal isnt necessarily to get a rise out of people, just getting seen enough times is enough to normalize their message in people's heads.
For that kind, it might be a good idea to present a counter-narrative, so that people that come across them dont subconsciously get the idea that the troll's message is one with wide public support. You wont change their mind by arguing with them of course, but that just means that the point is not to change their mind, but to drown them out essentially.