Both at once, and neither matters until it does
A section carrying shear has less moment capacity, and the reduction is the web's share of the plastic modulus times one minus the root of one minus the shear ratio squared. On a rolled beam that share is a quarter, so half the shear capacity costs three and a half per cent — and then the last tenth costs more than the first eight.
rung 1 · sections