Honchcrow can hit invisible mons. Only one I've found so far who does. Presumably others do as well
Thank you for this, this is the answer. If you don't have a Pokemon that can target invisible mons, you have to get lucky and have an in flight attack get redirected to an invisible one after its target is defeated.