Actually, I thought the bridge command group standing around wondering who was captain now, then acquiescing in Kirk’s assumption of command without the slightest right to do so even more idiotic.
On any naval ship, there is never the slightest confusion over who is next in the chain of command.
Captain Pike had named him number one.