You should be able to do that with CB Code Field and its Code Validation. You'd then just use PHP and compare the two fields values. Which field you add this validation to is up to you (could also just add it to both). Example as follows.
Code:
return ( '[cb_field1]' !== $value );
If these fields aren't marked required be sure you take into account them being empty. This will also work with ajax validation for client side validation if you adjust the Additional Fields to include the other address field.