How to select resistance to cancel offset output voltage due to bias current?
Bias current and offset are both DC phenomenon.  The way to deal with a capacitor for DC analysis is to treat it as an open circuit (and in the unlikely event that you have any coils in an op-amp circuit, you treat them as short circuits, or as the coil's DC resistance only).

In that event, the given expression for \$R_{comp}\$ is correct.