Why we have 3 places to manage external sharing for out MS Teams

Inside our Office 365 we have 3 places to manage the external sharing for MS Teams, as follow:-

  1. Inside the modern team sharepoint site that got created

enter image description here

  1. Inside the Team’s Org-wide setting >> External Access + inside the Team’s Org-wide setting >> Guest Access, as follow:-

enter image description here

so how those 3 places work together? for example we are only allowing the sharepoint site to be shared with people in our organization, while we have enabled the Guest Access + External Access inside the Org-wide settings… so will external users be able to use the MS Teams or not?