I wouldn't be so sure... because it hits doesn't mean it affects the targeted pokemon, even if a machamp uses dynamic on a gengar and hits, does not mean it affects it.
you could for example use a fire punch to win over a shedinja but that has nothing to do with no guard ability