Two-nucleon transfer reaction on oxygen and the nuclear coexistence model