I understand funerals can be awkward for those not directly grieving, but over-exaggerating your pretend sadness is of no benefit to anyone, it merely obligates the survivors to manage your fake concern. If you feel compelled to speak in all caps or explain how terrible this all is to a person who knows first hand and way better than you how terrible it all is, don't. Stay home. When you find yourself in the presence of mourning, simply say, "I'm sorry for your loss. If there's anything I can do for you, please let me know," and if he happened also to have been a great man you can add, "he was a great man," then bow your head and fade to back. That's all that's necessary. The system will take care of the rest.