code: func bestMatch(kinds []GroupVersionKind, targets []GroupVersionKind) GroupVersionKind {
  	for _, gvk := range targets {
  		for _, k := range kinds {
  			if k == gvk {
  				return k
  			}
  		}
  	}
  	return targets[0]
  }
docs: // bestMatch tries to pick best matching GroupVersionKind and falls back to the first
  // found if no exact match exists.