Identical bt doubt

one test case is giving wrong answer. can please someone tell the mistake.
code link : https://ide.codingblocks.com/s/103214

The trees only need to be structurally similar, the data can be different. So just remove that condition