Quite a classic one, I have to say.
Just ask any one of them "Is the one telling lies with the box containing gold bar?"
If the answer is 'yes', go for the other box, otherwise, this is the box you want.
If the answer is 'yes', go for the other box, otherwise, this is the box you want.