I vaguely remember a book about a kingdom that only allowed men to ascend to the throne, in fact women are not allowed on point of death to sit on the throne. Ruler had a daughter. His brother, far away, disguised and raised his daughter as a son. The hidden daughter becomes heir apparent and eventually travels to be present in her uncle's court. Her cousin flirts with her. One day the king encourages the heir to sit on the throne for one of those "everyone present their grievance to the king" occasions. The cousin shows up and accuses the heir of getting her pregnant.
And i don't remember - -was that the end and i never read the sequel? Did i forget the end? WHAT HAPPENED.
And i want to reread it, with my many years behind me.