Let's defend Akainu
(you see I am not hater, power level discussions are different)
Akainu wasn't actually trying to kill Ace,
He actually tried to kill Luffy, but Ace gave his life for Luffy. It was accidental, and Akainu was doing his job as a marine.
Kaido on the other hand, used hostage to win.