dnf.conf(5) manual does not document a default value for module_obsoletes and module_stream_switch options: module_obsoletes boolean This option controls whether dnf should apply modular obsoletes when possible. [...] module_stream_switch boolean This option controls whether it's possible to switch enabled streams of a module. Observed in dnf-data-4.10.0-2.fc36.noarch.
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
I made a PR: https://github.com/rpm-software-management/dnf/pull/1813
FEDORA-2022-e119fcc7d5 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e119fcc7d5
FEDORA-2022-e119fcc7d5 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.