I only buy my replacement iPhones from Apple in their stores. If you pay full price, the phone is unlocked when they hand it to you.
Apple is smart.
They don’t sell ‘plans’, they sell phones.............