Fair points, though I'd say lying under oath is illegal even if you're in high office.
You've reminded me about what happened to Maurice McCabe though.
Summing up from memory: he gave detailed evidence about widespread systematic corruption at the highest levels and below in the Irish police.
Shortly after, he was accused of stealing a pedo priest's hard drive from evidence. Accusations, later found completely untrue, were made by a garda of him doing bad things to young people.
Shortly after, a "copy and paste error" in a Tusla (Irish child services) database accused him of molesting a Garda's underage daughter at a birthday party.
After a huge fight involving many years of horrific struggle, multiple Garda Commissioners and a Minister for Justice resigned over the series of incidents. McCabe received a 5 million euro settlement. But for many years, the vast majority of the Irish media refused to touch his story; and even after it all came out they continued to report on it in the most twisted way possible. For example, they never mention, when discussing the "copy paste error", that this was in fact the third attempt to smear McCabe in this way.
(A brief timeline of the saga: https://www.irishexaminer.com/news/arid-20442857.html)
Stupid isn't the word you're looking for - it's 'complicit'.