Friction in inertial granular flows: competition between dilation and grain-scale dissipation rates