If #2 is illegal, then #1 is illegal. If you attempt to commit a crime, it doesn’t matter whether or not you got what you were after.
That argument could be made, but then we don’t know if number two would be illegal or not, due to the circumstances. Possibly yes, possibly no.
With regard to information, I have a very hard time thinking a prosecutor would bother with the case for number one.