Not sure if this fits the forum topic but does flatpak know how to interact with other instances of itself?

Each flatpak app instance runs in a PID namespace, so they can’t see each other’s processes.

Single-instance apps often use D-Bus for this (e.g. via GApplication), but that is cooperative. I don’t think there’s any way to forcibly kill the other instance.