function matchUserAgentDataBrand(str) {
  if (!useClientHints()) return false;
  const data = getUserAgentData();
  if (!data) return false;
  return data.brands.some(({brand}) => brand && contains(brand, str));
}
Checks if any string in userAgentData.brands matches str.
Returns false if userAgentData is not supported.
@param {string} str
@return {boolean} Whether any brand string from userAgentData contains the
    given string.