How to domain match

I get from “Have I Been Pwned” API domain where breach occurred in this format:

{
 Domain: "adobe.com"
}

Now I also have my own data which contains urls to sites like “https://auth.services.adobe.com/en_US”, and I wanna match those url which leads to the same site as breach domain. But it’s not straightforward because maybe HIBP can return domain name like “bankofamerica.com” while I can have url like “bofa.com” which leads to the same site so these two should match. Is there some way to match domains like this?