Devil's advocate means arguing the opposite side to test an idea, even if you do not personally support it. It can be useful in discussion, but it can also be used to derail or provoke if overdone.
Glossary term
devil’s advocate
Arguing a counterpoint just to challenge the room.