Failed to update nginx from 1.20.1-14.el9.x86_64 to 1.24.0-1.el9.ngx.x86_64 due to several file conflicts during transaction test

Just to add the process (i assume that you have still the distro packages installed):

# yum module enable nginx:1.22
# yum update