The verses you cited are not contradictory. Everything must be understood in the wider context of all the Bible says about family relationships.
God's original design for the family is that there be a husband and wife committed for life to one another under the authority of God, worshipping and serving Him, and raising their chidren "in the training and instruction of the Lord" (Ephesians 6:4). Since sin has entered the picture, members of a family are under the influence of sin, so some family members may now be obeying God and other's not.
The general principle in God's Word is that children should honor, respect and obey their parents ineverything (Ephesians 6:1), EXCEPT where their commands are unrighteous and directly contradict or violate the Word of God. An example of this is found in Acts 5:27-29 where the religious rulers commanded the apostles not to speak about Jesus (in direct contradiction to God's command). The reply of the apostles was correctly,"We must obey God rather than men!"
If parents are commanding their children to break God's law, then the child should obey God rather than the parent, which may set in motion the chain of events in Matthew 10:34-35; "...a man's enemies will be the members of his own household."
A word of caution: Children must make absolutely sure that what the parent commanding is a direct violation of the Word of God before deciding to disobey it. The should pray and ask God and get advice from other mature believers before they deliberately disobey, otherwise they may face the wrath of their parents and they will not only be sinning against their parents, but God as well. Just because the child feels the parent's command may be unjust, it does not necessarily make it a violation of God's Word.
Children who disobey parents should be prepared to face the wrath of the parents. If the child suffers as a result of chosing to obey the Word of God over their parents they are being persecuted for Jesus' sake. They should rejoice because they will receive a great reward in Heaven (Matthew 5:10-12).