To keep things simple, "activity is better for cognition". It doesn't have to be outside. Let's start with just promoting any activity...
There's already well-known studies showing that doing physical activity _before_ the school day starts, and then having the most challenging/cognition intense classes first, following the physical activity, boosts learning.
See the book Spark[1] to learn more.