I then decided that was too much of a pain, and flew through Dubai instead, which has a vastly superior transit experience!
At least assuming you're not a member of a demographic for whom that's a potentially dangerous location.
Aliens (with certain exceptions) need either a US visa or an ESTA to transit through the United States. Technically speaking, the Immigration and Nationality Act permits transiting through the United States without a visa if certain conditions are met, but in practice this is not allowed anymore.
U.S. airports generally don't do that. Even when transferring from a flight between Europe and South America they request you to go through immigration and customs.
I recently did a transfer in the US, took me 2.5 hours to go through customs. I booked before the govt shutdown, so I hadn't anticipated the delay. Not fun.
https://www.google.com/amp/amp.timeinc.net/fortune/2018/12/2...
I was on holidays to the US 12 days ago. Clearing customs & immigration in Miami International took less than 15 minutes.
No Global Entry, Economy ticket, so getting off with the rest of the cattle.
But yes, I have never, ever in my life seen a immigration queue that long, and I’ve taken some 50-60 flights in my lifetime.
Maybe it depends on airport design, but in Miami there is nothing stopping you from leaving the airport. In fact, we also experienced various issues with flights, and had to literally get out to check in area and chase airlines to take us (it is a long story, full of drama and missed flights due to external errors/issues).
US is special in this, now we heed the advice of many - don't travel through US in any way, potential troubles are not worth it.