I've seen 何気なく attached to verbs and used to mean "unintentionally or accidentally" similar to how 〜てしまう is used.
I was wondering if they had a different nuance.
For example the sentences:
I would both translate as "I ended up eating the whole cake accidentally." But is there a difference between them to a Japanese person?