There is no handgun or handgun load that will reliably stop a large bear.

If you absolutely must shoot a bear with something smaller than field artillery or a close air support aircraft, I would recommend a 12 gauge shotgun loaded with slugs. But it's better to avoid the bears.