We read the play in school and I have seen the movie. I’ve never read the actual diary. There was certainly none of that in the play or the film (which was based on the play). Even if she did write that in the diary, it should probably be censored from a grade school version of the diary. Also, it is an inclusion on Anne’s privacy to reveal private and intimate adolescent thoughts she would never have expressed in public.
There were multiple versions published
https://blog.bookstellyouwhy.com/the-versions-of-anne-franks-diary-explained
The version used in schools was the abridged version with stuff about sex cut out.