Not really the same, Smith was injured during the match, so if he didn't come out to bat, there would be no one to replace him. Very different to going into a match carrying an injury when a fit replacement is available.Not the first captain to do that.
Remember Smith went against medical advice in the test vs Australia circa 2008 when he was injured to try and save the match. We still lost yet everyone was calling him "captain courageous".