What Zoro did is a hypocrital response to what Sanji wanted to do. Zoro told Sanji to abandon Robin, which is worse than telling someone to abandon their ambition, since Nakama > ambition. Zoro said this, even though he himself would never do that. He did that because he feared for Sanji's life. Similarly Sanji told Zoro to abandon his ambition because he feared for his life to, whilst he himself would die for his own dream, as we saw in his flashback.
You need to understand the SH's are hypocrites. Usopp praying for Nami to go along with what Ulti says, yet he himself would never do that.