Mark package dependancy as satisfied without installation

I am interested in experimenting with the cosmic desktop. When attempting to install @cosmic-desktop a bunch of perl is brought it. Digging deeper it seems cosmic-session has a dependency on xdg-desktop-portal-cosmic which brings in all that perl. My experimental environment will not include flatpak anything. There is no need for xdg-desktop-portal stuff.

Rather than opening a bugzilla against cosmic-session I would like to find a way to fool dnf into having the requirement satisfied without actually installing the requirement. How can this be accomplished?

looks like it’s cosmic-settings-0:1.0.0~alpha.2-2.fc41.x86_64

This is kind of ugly but works
dnf rq --providers-of=requires cosmic-session | xargs -i -t dnf rq --providers-of=requires --recursive {} | grep -E 'dnf|perl'