How do you differentiate a test running on the pipeline vs running test in the environment? Which has more benefits?

On Day Two of TestBash Autumn 2023 we had the fantastic duo @nigel.brookes-thomas and @alexander.omahoney give a talk about how DVLA automates.
Following their talk, was the live Q&A with some many insightful answers! Unfortunately, we didn’t get to ask all of the question and one of them was this one:

How do you differentiate a test running on the pipeline vs running test in the environment? Which has more benefits?

How about you? What do you think?

Doesn’t this depend on what problem the test is trying to find and what’s different in the two contexts/environments?