I would say 'the Diet Building is the counterpart of the Capitol Building...'
I would not say that they are equal to each other. This somehow suggests that they are identical in some quantity. I realize they serve similar governmental functions, but that's not how you would express that idea.
You may wish to say that 'the Diet Building serves the same functions as the Capitol Building'.