A closed section (tube) would be more rigid when considering bending through different axis. A T or I are specifically designed for rigidity in only one axis. This is one reason that you often see tubular columns which can resist bending from any direction and generally see T or I sections in beams where the loading is generally in the vertical direction.