The 5950x will max out at 142w. For aircooling it's strongly recommended to use a cooler capable of 2x the wattage or temps will be high. There really aren't any 300w capacity aircoolers, the largest being beQuiet DarkRock Pro 4, Deepcool Assassin III, and Noctua NH-D15, all of which are 250w+ coolers.
Ryzens don't like heat. An intel at that wattage is fine, they'll go to 90°C easily and not have any performance issues, as the boost is static. However, Ryzens are dynamic boosts, they boost individual cores and clock speeds according to voltages and loads and temps.
So while the big aircoolers will work fine, you'll get higher than wanted temps, which lowers individual core boosts, and will limit the amount of cores seeing max boost.
A 280mm AIO has @ 300w capacity, a 360mm is @ 350w, and the few 420mm have @ 400w capacity. This is a distinct advantage over aircooling, as fan curves will be shallower, with lower overall peaks. That means better ability to disperse heat, lower temps per watt.
You can also use Dram Calculator (with adjustments) to fine tune the ram for better communication with the cpu, faster processing speeds, and CTR2 to limit VID voltages to lower overall voltage use and resultant temps and Gain cpu core performance. Both have a learning curve, and take some thinking, but the end result is higher performance, lower temps.