Why can't it be both? You think a rational, mentally healthy woman would kill her kids because she was jealous/mad at their father? Mentally ill people can absolutely still have motives and thought processes. Those thought processes are going to be screwed up and irrational, though.