The distribution group just a relationship for mailboxes, you can sync it to make it visible for Exchange online, but you cannot migrate it to Exchange online as mailbox. You need to recreate them on Exchange online again.
You can use script like this blog to recreate distribution on Exchange online: How to migrate Distribution Groups from Exchange on-premises to Exchange Online
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.
If the response is helpful, please click "Accept Answer" and upvote it.
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.