Can one use on Shabbos an automatic toilet with an electric sensor that triggers the flushing mechanism when you are done? For example in a hotel lobby, or a public building. Assume there is no other toilet reasonably available.
Basically, does ba'al tishaktzu/ kavod habri'os/ being in discomfort etc. override the potential problems of triggering the toilet to flush?
Would that same scenario be applicable to to an automatic sink? (ie so no one has to touch one's dirty hands)