Nonuniversal transition to condensate formation in two-dimensional turbulence