There's stupidity and incompetence, and then there's deliberately breaking the law and trying to hide that you're doing so. The latter gets you arrested, the former gets you shamed (and perhaps fined).
The bad switch was the responsibility of one engineer who simply didn't think it was a problem. Once it turned out it was, the switch was redesigned without changing the part number, which is really weird, but doesn't seem to have been part of any sort of coverup. It then took years for realization of the problem to percolate up far enough for the company as a whole to take action.
Maybe. The Justice Department case against GM that was settled had two parts... a wire-fraud charge and a charge of "engaging in a scheme to conceal a deadly safety defect".
Of course, GM settled for $900 million (USD) with an agreement to drop the charges if GM fixes their recall process. So, we don't have a criminal conviction.
I do wonder if GM got off easy because they are American. Next to impossible to prove, lacking a smoking gun (email or similar), but GM actually killed people and got a small fine (relative to VW's fines).