Keep in mind that in Europe, some phones are still under carrier control, despite not technically being locked.
You can resell the phone and use it with any carrier you wish, but as soon as the original owner stops paying the bill, the phone becomes remote-locked and turns into a brick.
Samsung's Knox can do this, not sure which other brands also have that option.