I disagree. I think my original post is perfect irony.
Effect X being caused by Y and solved by Z AND X being caused by Z and solved by Y is irony.
Dictionary definition: “ a state of affairs or an event that seems deliberately contrary to what one expects”