CCC 460 The Word became flesh to make us "partakers of the divine nature":78 "For this is why the Word became man, and the Son of God became the Son of man: so that man, by entering into communion with the Word and thus receiving divine sonship, might become a son of God."79 "For the Son of God became man so that we might become God."80 "The only-begotten Son of God, wanting to make us sharers in his divinity, assumed our nature, :so that he, made man, might make men gods."81
Do you know what this means? You may wish to bone up on Psalm 82:6 and John 10:34 before you answer.
Catholics believe that we are made in the image of God, and that in order to enter the kingdom of Heaven, we cannot be impure in any way. Does that make us equal to God? Of course not. The angels are not equals to God. Yet they are in Heaven.
And those in Heaven are perfected to the point where they judge angels. Does that make them equal to God? No.
One clue is in the appearance of Jesus with Moses and Elijah, and the appearance of Moses and Elijah were so overwhelming that the Apostles wanted to honour them as much as Jesus. Does that mean that we are lifted so far above our current state that we appear as gods to living humans here on Earth? Not equal with God, but seriously above our current station.
I know the two verses very well and understand the problem. The misunderstanding comes from the words that have been translated god. The words that have been translated god are all descriptive words. The original word in those two verses for instance is Elohim. When Elohim is used it is describing Gods attribute of being a judge. In those two verses it was referring to the Judges (men) among the Israelites. When put in context it was indeed referring to God as a Judge but in those two instances it was referring to men who were called judges (Elohim).
One more point on that CCC460. Notice that that contains both the lower case and upper case g used in god. That is no coincidence or oversight.