We consider the two lowest Landau levels at half filling. In the higher Landau level (nu = 5/2), we find a first-order phase transition separating a compressible striped phase from a paired quantum Hall state, which is identified as the Moore-Read state. The critical point is very near the Coulomb potential and the transition can be driven by increasing the width of the electron layer. We find a much weaker transition (either second-order or a crossover) from pairing to the composite fermion Fermi-liquid behavior. A very similar picture is obtained for the lowest Landau level, but the transition point is not near the Coulomb potential.