Thank you for the 詳しい説明

Now I also wonder what is the difference between こと and ということ
For example:
過労死とは働きすぎて、死んでしまう
ことです。
過労死とは働きすぎて、死んでしまう
ということです。
I am guessing that the first one is a flat statment,
and the second one is explaining what 過労死 is~ Am i right:?