Microsoft Defender AV Group Policy settings must take priority over the local preference settings.
This policy setting configures a local override for the configuration to turn on real-time protection. This setting can only be set by Group Policy. If this setting is enabled, the local preference setting will take priority over Group Policy. If this setting is disabled or not configured, Group Policy will take priority over the local preference setting.
How this relates to the STIG checklist: STIG vs SCAP benchmark.