Don't perform expensive go-cmp/cmp comparisons if unneeded
Don't perform expensive go-cmp/cmp comparisons if unneeded

The cmp comparison is relatively expensive (#104821).  If we're not
going to log it, we shouldn't make the comparison.

Kubernetes-commit: 668a546168f8a190bbd8f30b57469a5b95423587

kubernetes/legacy-cloud-providers