An AIO will take longer to saturate and will give superior results vs. an air cooler in pretty much any situation, generally speaking.
That said, in my opinion an AIO is overkill for a i5-10400. As a matter of perspective, I'm running an i5-9600K (not over-clocking atm) with the Noctua...