Update: I ended up rebooting the new phone, which allowed me to start again. This time, I chose not to set up the esim and the setup went smoothly. There’s clearly a bug in the eSIM transfer on setup — at least for Telstra — but it worked if I skipped that and worked later when I transferred the phone number through the settings.