I won a pair of WF-1000XM4 in a Christmas raffle a while back, so here is a quick comparison with the Airpods Pro.
Because of its ear tips, the WF-1000XM4 sometimes gives the sensation that the noise cancelling drops out for a moment during certain activities.
For example when working out or yawning, but swapping in a third-party silicone ear tip should fix it.
The WF-1000XM4 presses fairly hard against the contour of the ear; for me the Airpods Pro is more comfortable.
In terms of sound quality the WF-1000XM4 is better.
Since I use an iPhone, the Airpods Pro still wins on system integration.
If you use an Android phone and the fit happens to suit your ears, the WF-1000XM4 is well worth recommending.