If you want to do great work, that usually happens in environments with minimized politics.
It's probably bad career advice to completely avoid politics (most places aren't doing great work) but it depends on what you're optimizing for.
The problem with everyone getting into the political game is that then we have everyone talking and noone building.