Sidestepping for a moment the arguments on morality or decision making, there's still risk in losing the impression of meritocracy within an organization and transparency with a board.
Any level of increase in doubt even for only a portion of the people around the CEO introduces negative effects on performance. You can probably choose to let people go on just the economic and legal risk rather than having to divine how all these factors shake out.
To be clear this is why I say "any level of increase in doubt". Assuming nobody believes that outcomes are 100% merit-based, some amount of people will still believe it is 10% merit influenced, or 20%, or 30%.
The number you choose is not important. If keeping a specific CEO makes people lower whatever they think that number is, that is a risk.
Any level of increase in doubt even for only a portion of the people around the CEO introduces negative effects on performance. You can probably choose to let people go on just the economic and legal risk rather than having to divine how all these factors shake out.