How is that even comparable?
Koby was refusing to orders of his superior, considering that Akainu killed a Marine before, no he doesn't.
But fighting Shanks means starting another War, it's not under Akainu's authority to decide that.
Why did Kizaru ask Sengoku whether they're allowed to kill Luffy and co after their arrival?
Because they are a separate force coming in.