Mary was not perfect. There is only one perfect person and that is Jesus. He is the only person that did not sin. He was the perfect man. I don’t remember what verse it was but it says something to the effect of “for all have sinned and all fall short” and “it is through Christ alone that makes us perfect” I know I may be misquoting but its close. I will look it up when I get home.
I believe you’re looking for
Romans 3:23 - it refers to the righteousness accorded to anyone who follows the law and does not have faith in Christ and in the context of that I say amen. However it cannot possibly mean that absolutely no-one is righteous, or what are we to make of
Ecclesiastes 7:15 “In this meaningless life of mine I have seen both of these: a righteous man perishing in his righteousness, and a wicked man living long in his wickedness.” and other such passages that refer to people being righteous (Job, for e.g.) You may also be thinking of
Romans 3:9-12 in which Paul quotes the old testament (
Psalm 14 and
Psalm 53 which both refer to those who say “There is no God”, and
Ecclesiastes 7:20, which is essentially a consolation for all who have recently sinned, to remember they are not alone. Was it intended literally? That is up to your interpretation, but not made explicit in the text).
Now I ask you what you make of
Genesis 3:15 when God says he will put enmity between you (Satan, the serpent) and the woman, and between her seed and your seed. This is the one time in scripture that the seed of the woman is referred to, not the man’s seed - why? The seed of the “woman” (Jesus frequently refers to Mary by this name) is not the seed of any man. If God said He will put enmity between Mary and Satan, wouldn’t her sin put her in alliance with Satan?
I agree with you that we are not righteous by our own power, that we are made righteous by God through Jesus. The same applies to the righteousness of Mary - she is made righteous by Christ. How is it that you can make a positive statement that she “was not perfect”? You may believe that Mary was made righteous from the annunciation onwards when she had belief in Jesus just prior to His conception. That is your choice to interpret, but again not made explicit in the text.
Lastly, and I stress that this is my own musing - not a direct teaching of the Church as far as I’m aware, the biological implications of the concept of Jesus being both perfect God and perfect man. Jesus got his X chromosome from His mother, and his Y chromosome by the power of the holy spirit. The Y chromosome is smaller and only contains gender determining genes, while the X chromosome contains a lot more information. The implication? If Mary was physically or behaviourally imperfect, Jesus would have inherited her imperfection.
References
Rom 3:21-27 said:
21 But now a righteousness from God, apart from law, has been made known, to which the Law and the Prophets testify. 22This righteousness from God comes through faith in Jesus Christ to all who believe. There is no difference, 23for all have sinned and fall short of the glory of God, 24and are justified freely by his grace through the redemption that came by Christ Jesus. 25God presented him as a sacrifice of atonement,[a]
through faith in his blood. He did this to demonstrate his justice, because in his forbearance he had left the sins committed beforehand unpunished— 26he did it to demonstrate his justice at the present time, so as to be just and the one who justifies those who have faith in Jesus.
Psalm 14:1-3 said:
1 The fool [a]
says in his heart,
“There is no God.”
They are corrupt, their deeds are vile;
there is no one who does good.
2 The LORD looks down from heaven
on the sons of men
to see if there are any who understand,
any who seek God.
3 All have turned aside,
they have together become corrupt;
there is no one who does good,
not even one.
Psalm 53:1-3 said:
1 The fool says in his heart,
“There is no God.”
They are corrupt, and their ways are vile;
there is no one who does good.
2 God looks down from heaven
on the sons of men
to see if there are any who understand,
any who seek God.
3 Everyone has turned away,
they have together become corrupt;
there is no one who does good,
not even one.
Ecc 7:20:
There is not a righteous man on earth who does what is right and never sins.
Gen 3:15 said:
15 And I will put enmity
between you and the woman,
and between your offspring [a] and hers;
he will crush ** your head,
and you will strike his heel."**
Ecc 7:15-18 said:
In this meaningless life of mine I have seen both of these:
a righteous man perishing in his righteousness,
and a wicked man living long in his wickedness.
16 Do not be overrighteous,
neither be overwise—
why destroy yourself?
17 Do not be overwicked,
and do not be a fool—
why die before your time?
18 It is good to grasp the one
and not let go of the other.
The man who fears God will avoid all extremes .