Which comes first: the domain or the brand?

Some debates are difficult to settle. Like, “Which came first: the chicken or the egg?” There’s a similar question Which comes first: the domain or the brand?. When naming your company, do you look for available domains in order to decide on the brand, or do you generate name ideas and then see which domains