Me too. Not going to make something as simple as this difficult.
I want to leave, I leave. Giving others the opportunity to say goodbye is polite in my opinion. A wave to the group and a quick round of hugs if that makes sense.
Pro tip, tell someone who isn’t talking that you are going to “start packing up” or “getting ready to leave” then you can slowly gather your coat/bag, bring your glass to the kitchen, etc. it’s stuff you would have to do anyway.
what works for me is quietly telling one person that i'm leaving, just in case anyone notices, with the understanding that i don't expect anyone to notice.
At my work we jokingly dismiss each other, someone will stand up and say to someone else "hey, John, you can go home now" as though they are the boss, and then that person will say to someone else "hey, Jane, you can go home" and so on. Until we are all dismissed for the day.