Funeral expenses are not considered as health expenses, so you can't use your HSA or flexible spending account on them.