How to hide blocks based on menu_name
I use Menu Block for this purpose.  You can specify which levels of which menu you want to show, and the blocks display conditionally depending on the current active trail.