the pretend TD would have been scored. A bench infraction during the play (players coming onto the field) would absolutely erase a TD. Why would it be any different if it was the AD?
Otherwise…let’s just send dozens of coaches on the field in that situation and have them block.
Of course it would erase the TD. And the game would be over.