Choice-driven phase transition in complex networks