It’s “common knowledge”—and the scare quotes should be a warning—that the sun is an average star. But it’s not, and in fact it’s not even close: The sun is in the top 90th percentile of stars by mass.
Massive star formation (above 8 M⊙) unfolds within dense molecular clouds, where gravitational collapse and angular-momentum conservation give rise to rotating protostellar discs and bipolar outflows.