The XC hub on the back of my Pitch is in at least it’s 3rd build, i bought it 2nd hand and it had been rebuilt into a new wheel once already. All it’s had is new bearings.
Cheep: XT
Cheeper: Deore
IME the hubs last about 2 years with minimal maintenance (annual strip and grease), which is about what I get from rims on an XC bike so build them and bin them when they fail.
Next best would be a 2nd hand hope XC if you only need a QR axle.
It’s really hard to justify anything but Pro2’s though if you can afford them, lighter than shimano and Hope’s warrenty is brilliant. That and they’re just nicer than shimano. No play in the freehub, rebuildable, stiffer, I’m sure the combination of no play in the freehub and stiffer axle make them shift better too.