You cannot migrate group to Exchange online like migrate mailbox.
You need to recreate distribution group on Exchange online manually, you can also try to find some script to recreate group on Exchange online. Such as: How to Export Distribution Lists from on-premises Exchange and import to Exchange Online Office 365. But, those script only recreate group, it will not recreate permission on those group.
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.
Personally, I would suggest you sync distribution groups to Exchange online and keep the running of hybrid. In this way, you will could use distribution group on Exchange online without recreate them.
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.