I'd say that hanging your food is the best option for most people in most cases; cans are heavier and harder to pack. Bear cans (like cooking stoves) are required in some areas, so it's good to have one. I'll use one instead of a bag hanging setup when I camp up in Alaska just for the extra peace of mind. They also protect your food if you're camping up above the treeline, whereas most bags will not.