Identified by #1205.
I've made a private GitHub repo here which runs code on both ubuntu-latest and macos-latest that stores the full entity dataset as artifacts so I can see exactly which variables are different (have so far established the input data is the exact same, not modified by OS behaviour).