You need to delete those Exchange online mailboxes, then use AAD Connect to sync local AD account to Azure AD. Then create hybrid for your Exchange on-premises and Exchange online. Exchange/Office 365 Hybrid Configuration Wizard – step by step guide
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
After that, you will could migrate Exchange 2013 mailboxes to Exchange online from this Exchange online admin center:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.