There are some limitations to the primary alias.
Note: "You can't change your primary alias to an email address that's associated with a work or school account."
So if you want to connect a domain that have Microsoft 365 already it's not possible.
If this was helpful, please Upvote and Accept Answer.
Else, please Comment with further information or related questions.