Alternately; this anachronistic idea that not going to a religious ceremony is “the wrong thing” can be disregarded. I never attend funerals, and I rarely attend weddings. I skipped my father’s funeral. It simply doesn’t matter if you go or not.
Consider that funerals may have developed over millennia as a component of the grieving process. There is nothing necessarily religious about them.