SharePoint and OneDrive both are cloud-based services that help share and manage content. You can share document files & permissions across several individuals.
OneDrive is best for private work documents that only you intend to see, and SharePoint is for use when you are working as part of a team or an organization.
Collaboration with others
-OneDrive is great for draft documents before moving to a team site or personal documents that no one else needs to see.
-SharePoint great for teams of users working together and collaborating on a document.
https://support.microsoft.com/en-us/office/should-i-save-files-to-onedrive-or-sharepoint-d18d21a0-1f9f-4f6c-ac45-d52afa0a4a2e
https://support.microsoft.com/en-us/office/collaborating-with-teams-sharepoint-and-onedrive-9ea6aa07-6e5e-4917-9267-d4d361da3dea