Problems upgrading from f35 to f36. PHPMailer and wordpress issues

,

Wanted to upgrade from fedora 35 which has been stable for me dev to fedora 36. Got the following error:
What can I do to resolve this?

Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: Transaction test error:
file /usr/share/php/PHPMailer/PHPMailer6/PHPMailer.php conflicts between attempted installs of php-phpmailer6-6.6.5-1.fc36.noarch and wordpress-6.0.3-1.fc36.noarch
file /usr/share/php/PHPMailer/PHPMailer6/SMTP.php conflicts between attempted installs of php-phpmailer6-6.6.5-1.fc36.noarch and wordpress-6.0.3-1.fc36.noarch

The steps I took were as below:

I did the usual system udpates with
dnf --refresh upgrade

followed by
dnf system-upgrade download --releasever=36

followed by adding optons allowerasing and best options as follows:

dnf system-upgrade download --refresh --releasever=36 --allowerasing --best --skip-broken

This appears to be a known issue with the wordpress package.
https://bugzilla.redhat.com/show_bug.cgi?id=2038302#c1
The workaround there is to do

rm /usr/share/wordpress/wp-includes/PHPMailer

before an update.

Alternatively, I suppose you could remove wordpress before the upgrade, and re-install it after.

Elliot, I had been thinking of deleting package wordpress.
But your suggestion of deleting the phpmailer file was brilliant!

Thanks! I removed the file and continued with the upgrade to 36.
36 installed completely now!

Thanks again!