I recently read a link posted in another thread about bear calibers. It was a bulletin put out by the Alaska dnr ranking rifle and pistol cartridges and shot gun shells. Actually the 30-06 in either 180 or 220 grain was ranked very high, better than all mags except the really big top 4 or so. The 7 mm was ranked a few spots lower. I have both, a couple 06 semi autos, a 742 and 7400 as well as
A 7 mm in a 700. Tough call but a charging bearis really fast. Providing the 742 is in excellent condition and the action is not galled or the action jails are not chewed up and the gun is clean and properly lubed for the weather I would take the 742, or better a 7400 or newer. However is there is any doubt go with a bolt
30-06. A bolt 7 MM would be a good choice with the heaviest sturdy bullets that both penetrate and expand and hold together.
Bigger is better but the main factors they cited were size, penetration, expansion, energy and retained mass. Bullet construction is very important as well as caliber and velocity. But don't forget that shot placement and rapid follow up are also big factors.
No matter what you shoot you are going to need practice with it and learn to keep your nerve.