The equivalent example would be: "I might as well hack this account and take all the money because if I don't, someone else will".
I have no problem with: "I should inform the developers of the vulnerability (perhaps publicly to pressure them) so that it will be fixed because someone will hack it otherwise".