Of the two you mention I would prefer the .40, just in case for some reason the bullets did not expand as intended (Murphy). My personal choice, however, given the possible bear encounter would be a 10mm in a semi-auto, or .44 Mag or larger in a revolver.