Good bye and goodbye are often used interchangeably in English, but they are not exactly the same.
Good Bye
Good bye is an older version of the phrase and is used as a farewell. It is usually used as a formal way of saying goodbye and is often said with a slightly more serious tone than goodbye. It is also sometimes used to emphasize the finality of a situation or relationship.
Goodbye
Goodbye is the more commonly used version of the phrase and is used as a casual way to say goodbye. It can be used in both formal and informal settings and is generally considered less serious than good bye.
In conclusion, good bye and goodbye are both valid ways to say goodbye, but they have slightly different connotations. Good bye is more formal and implies a more serious tone, while goodbye is more casual and can be used in both formal and informal situations.