Pick your passport, where you connect, and where you're headed. You'll get two clear answers, staying airside versus leaving the airport, with the official government link to apply.
Your route
Passport, the country you connect through, and your final destination.
Your layover
Rules change the moment you pass through immigration.