I am not a lawyer, so I have no idea how those scenarios would play out in court! 😁
But as a non-lawyer it seems easier just to avoid using the word in the domain name?
You would still be unrestricted in using the word "mastodon" in discussions online, for example about the extinct animal or about the band. These legal terms only apply to branding of social networks, including domain names.