what is the difference between distribution group and office 365 group?
Microsoft 365 groups (formerly Office 365 groups) are used for collaboration between users, both inside and outside your company. Distribution groups are used for sending notifications to a group of people. Security groups are used for granting access to resources such as SharePoint sites.