It's avoidable. I don't remember how though. But it's only in like, one scene anyway, and I'm pretty sure it's bathroom-specific. The pose pretty much gives it away.
so what you wanna do is go into your inventory and stand next to the girl and click the homework it will give it to her and you'll be able to continue.