The term "homily" generally refers to a religious discourse or sermon intended for spiritual edification rather than doctrinal instruction. It conveys moral or ethical lessons, typically in a simple and practical manner.
In a more figurative or humorous context, some might use "homily" to describe a lengthy or moralizing speech that could come off as preachy or overly earnest, potentially leading to sarcasm when someone is mocking the serious tone or content of such a discourse.
If you are looking for specific examples or further elaboration, please let me know!