Who would win a fight anaconda or bear?

Well lets say a Grizzly Bear against a giant green anaconda then it would go to the bear as long as the bear could see it. Same with the Black Bear. A sun bear,Panda Bear,Or spectacled bear would loose no doubt and the polar bear would kill the anaconda in seconds. In the water a large enough anaconda would be able to kill a brown bear or black bear if it could ambush. The anaconda would be no match for a polar bear.