A Universal Formation Mechanism for Open and Globular Clusters in Turbulent Gas