@ mandarin,
There are still places in the Sierras where a proper hanging of a bear bag (that is not an Ursack) in a tree will work …but these are not the most popular spots for backpacking. The Carson Iceberg Wilderness, for example once you are away from the PCT, has lots of bears but few backpackers so IMO you can get by with a proper hanging.
It is also a good habit to cook and eat and clean up 200 or 400 yards from your campsite if not have dinner a mile before you pitch your shelter and have breakfast a mile or two after starting your morning hike. This way there are no food smells to attact the bear in the first place
You can use google to research the web sites of the various wilderness areas to get their up to date recommendations. For some trail heads, the US Forest Service recommends against hanging your food but does not require hard sided canisters. There are multiple reasons for the changing recommendations including the bears learn how to bring down hanging food and some backpackers are sloppy in thier habits.
If you are doing just one trip a year that needs a hard sided canister, you can rent them here: https://www.wild-ideas.net Also I believe REI has started renting canisters. And some of the Land Management Agencies that require canisters, have in the past had some available to rent. Check thier web sites.