Always verify the device is actually unlocked before finalizing a purchase.
: Carrier stores typically do not stock unlocked legacy models like the iPhone X. 2. How to Verify "Unlocked" Status
Because it is discontinued, you must look to the refurbished or used market.
: While rare for the iPhone X, you can check the Apple Certified Refurbished store for the highest quality units.