Lugs are for grip, and grip is surface-specific
Lugs are the little rubber teeth on the bottom. Deeper, more spread-out lugs bite into soft ground and shed mud. Shallower, closer lugs roll smooth and feel planted on firm dirt and pavement. That is the entire tradeoff, and it means there is no "best" lug depth, only the right depth for your surface. Run a deep mud shoe on dry hardpack and it feels like spikes, slows you down, and wears out fast. Run a shallow door-to-trail shoe in real mud and you will be on your back.
So before anything else, be honest about the ground. Is it buffed singletrack and gravel, or is it ankle-deep slop and wet grass? Is it pointy alpine rock or soft forest floor? Most ultras live in the middle, on mixed mountain trail, which is exactly why the all-terrain 4 to 5 mm lug shoe is the category most people should default to.