The real advice should be formulated like this - avoid office politic at all costs if you tend to take side of the humans/workers and strive for justice in any form or are advocating for recognition for worker's deeds and so on. Don't avoid office politics if you can and want to act like a mini-corporations, can be absolutely ruthless and can throw anyone under the bus if it results in the net positive value for your career.

If you tend to skew towards the first group, supporting underdogs and people abused by the company, then supporting them is morally right but net negative to your personal career. Only people who skew to the second category should really engage in office politics.