compare two nodes on the same level