Your bag will have to fit into the sizer for it to be approved as a carry-on. Having a flexible fabric bag is advantageous in this situation because you'll be able to squeeze it in even if it's slightly oversized. Usually, many airlines won't check every carry-on but will instead go for ones that look oversized.