> oh my gosh.

I've heard some people say "**oh my gosh**" instead of "Oh my God"? Do these two mean the same thing?
I searched the web and found an explanation, but I don't now if it is an valid answer or no:

The explanation is:

 "*The difference is that some people see oh my gosh as far more polite than oh my god. The reason for this is that many religious people believe that you shouldn’t use god’s name in vain which means you shouldn’t associate god’s name with something bad.*" [1]

[1]: https://www.myenglishteacher.eu/question/oh-my-gosh-vs-oh-my-god/