In literature / academic context, irony describes the ==opposite of an expected outcome==. Example: Rita tries to not become like her mother and because of trying it, she ends up exactly like her.