You can reliably disable it with Group Policy Editor. At least on Win10, not sure about Win11.
It does not work. You can disable _some things_ , but not the whole.
Just run
Get-ChildItem @( "C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package.mum", "C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package.mum" ) | ForEach-Object { dism.exe /online /norestart /add-package:"$_" }