HYTA involves a guilty plea, so the USCIS could view it as a conviction.
If the interview officer told you that you will get a Green Card if you document that your case was closed without the entry of a conviction, I don't have any reason to suspect that he was lying to you.

