The role as a majority shareholder wins, and only courts can decide that that's not the case and declare the CEO to be unfti.
I don't think a court examining the board's removal of matt would conclude they acted improperly based on some gross simplification to "the role as majority shareholder role wins", that's why the board was able to legally remove matt. They made the right call, and matt subsequently made a different call in removing them because he was mad and full of himself. Both calls seem technically legal.