A more practical approach might be a way to stop water from going into the bowl. E.g., you lift up on the handle to close the tank flap. Or maybe there's a stop button next to the flush button.
That would be almost as good as an overflow drain, but wouldn't require adding second sewer pipe.
The overflow is only for water, right? Then a filter at the overflow entrance (or just the opening being narrow enough, two/three small holes maybe) could make positively sure the overflow bend cannot possibly get clogged.