A good carrier is about more than size. Look for: a wide enough base that your pet can turn around, mesh panels for airflow, and a structure sturdy enough not to collapse when lifted.
For flights, check your airline's exact under-seat dimensions before buying — carriers marketed as "airline approved" can still vary by a few inches from what a specific airline requires.