My gravel bike has hydraulic discs, love ‘em. I have off road and road wheels for it with Stan’s Neo and DtSwiss hubs respectively. Had to put a 0.25mm shim behind the rotors on the Stan’s hubs, now the rotors line up perfectly and wheel swap is easier than swapping rim brake wheels.
My older road road bike has rim brakes, they still work well too. Having ridden both bikes in the mountains in the rain (yes it does rain in SoCal), the discs win hands down on this front.
Discs also allow for carbon rims without being concerned about braking surfaces and cooking them when braking.