A direct comparison of two codes in numerical relativity