Saru went rogue on Pahvo and Burnham committed mutiny. Neither of them are fit to command.
Therefore, command of the Discovery should fall to its second officer, Acting Captain Airiam. Her name will be legend.
Kirk went rogue, stole a Federation Starship, sabotaged another, violated restricted airspace, engaged and stole a vessel from a hostile major superpower and destroyed his stolen starship.
Picard went rogue twice, first violating orders to bring his ship from an assignment in the neutral zone into battle with an enemy his government and superiors felt he might be compromised by, and later violating orders from an admiral and the Federation Council because he wanted to save white people.
Both were fit for command, because positive ultimate outcomes.
I actually think it's written into Starfleet regs somewhere.
So no worries!