None of this particularly addresses the issue of whether the various materials should have been leaked. That is a topic for another day.
So as you can see and, in summary, the two cases are very, very similar.
Actually, that was a lie. The two cases are about as dissimilar as they could be. So you can conclude at least that anyone who claims to you that they are similar is just an idiot. From top to bottom, soup to nuts, materials released, credibility of the person who released them, impact on our country, and so forth and so on, they are completely and utterly different. About the only thing you can say that they had in common is that they both involved the unauthorized release of highly classified material.