Moreover it's assuming that being a ghost would actually impart some incredible insights, or that the behaviour or experience of being a ghost would necessarily reflect that. Most of what I know about ghosts comes from the movie Casper (1995), and in that ghosts are depicted as beings who can't move on from some trauma from their life. Maybe the incredible insights come later, after moving on; maybe the nature of being a ghost necessitates fixation on the "mundane".
I'm also not sure (nor am I not not sure) that most accounts of interaction with ghosts would even be described as "mumbling on about something mundane". A Christmas Carol (fictional) depicts ghosts as providing life-changing spiritual guidance, for instance.
The best - and only - argument we have against belief in any kind of afterlife is that we have no actual evidence for one. The very idea lies outside of our capacity to know.
https://www.npr.org/sections/thetwo-way/2010/10/26/130829358...
Are there actual, verified instances of this happening?
https://books.google.com/books/about/The_Self_Does_Not_Die.h...
There are a few stories in it that left me raising my eyebrows and going "well, that seems improbable."
I've not found any I couldn't construct a reductionist dismissal for (usually of the form "confirmation bias - someone had to eventually have the hallucination that corresponded with reality and we don't hear about the failures" or "the witnesses memories are incorrect"), but that doesn't mean I find the dismissals entirely plausible or fully convincing.
That is: our medical definition of death wouldn’t be what determines freeing a soul from the body. I can’t imagine an “oops, looks like they got your heart beating again - guess it’s time to stuff that pesky soul back in the carcass. See you in a few years” scenario.