That's pure horseshit, Zoro was fully ready for dying here. In fact he literally offered his death instead of luffy's.
Him actually surviving a death sentence that would kill 5 luffys in a row was not expected at all. Not even by Kuma himself.
Zoro didn't simply wanna die
He doesn't see glory at simply dying, he is doing that because he thinks his ambition means nothing if he can't protect his captain, who he states that is gonna be the pirate king.
Meanwhile, thats Sanji
He thinks that it's cool dying for the sake of it, the reasons he gave to sacrifice himself don't feel real or meaningful to what he actually is and his position in the crew. He complains about Zoro putting his life on test but then does the same, not out of self worth and self praise. He tries to mimic Zoro there but completely fails when he says "start looking for a new cook". Even Zoro values Sanji more than he does in that scene and thats why it makes sense that Zoro hit him after that
While Zoro is stating how great his ambition is that he must be able to back up his captain for that reason, Sanji is there acting like he is merely replaceble for Luffy and the crew. Later Sanji also says "I just made a fool of myself" when Brook was praising both of them for what they did