Very confusing, you need to consult https://learn.microsoft.com/en-us/windows/privacy/manage-connections-from-windows-operating-system-components-to-microsoft-services#21-cortana-and-search-group-policies
"Do not allow web search" looks old and probably deprecated, but Microsoft's docs still mention it for some reason. Thus, I am also going over other similar old settings for safe measure.