My inclination would be to use categories. I usually set up a custom taxonomy for each custom post type, so I would determine the category of the post under “brand”, and do a query on the other post type to see if there are any posts there with the same category.