But would avast or kaspersky detect one another or turn themself off? But if I did a full scan with avast would it still workout fine
Well, if you are running either Windows 10 or 11, both are protected automatically by Microsoft Defender. This is their default antivirus for Windows. You do not need to install another antivirus program according to Microsoft.
When an user installs a third-party antivirus, (Kaspersky or Avast or other) Microsoft Defender will automatically detect the new antivirus and disable itself on restart of your system.
Automatic disabling does not happen with any third-party antivirus; all installed antivirus programs will continue to run on restart.
Uninstalling the antivirus
you do not want is recommended.
Microsoft Defender cannot be uninstalled, which is why Microsoft disables their antivirus.
Doing so will prevent conflicts which can damage or cause corruption to your operating system. When they disable their antivirus they are following best practices for user safety and optimal operation.
I'd suggest following Microsoft practices by uninstalling your first or second antivirus. You will prevent corruption of your operating system if you uninstall.
You do not get better protection against malware by running two antivirus programs at the same time.