"Cosmic" vs. "stellar": exploring the universe of words

What is similar?
Both words relate to outer space. "Cosmic" pertains to the universe as a whole, while "stellar" pertains specifically to stars. They both convey a sense of grandeur and can describe phenomena related to astronomy.
What is different?
The word "cosmic" is broader in scope and can refer to anything related to the universe, not just stars. "Stellar" is more specific and typically refers to stars or qualities associated with stars. Additionally, "stellar" can also be used metaphorically to mean outstanding or excellent.
Which one is more common?

Examples of usage
Cosmic- The cosmic scale of the universe is beyond human comprehension.
- We discussed cosmic phenomena like black holes and quasars in class.
- She gave a stellar performance at the concert tonight.
- Scientists study stellar formations to understand the life cycle of stars.