How AI Search Engines Choose Brands to Recommend