Jesus claims to be glorified

I am the LORD, that is My name;
And My glory I will not give to another, nor My praise to carved images.

-- Isaiah 42:8 (NKJV)

Yet Jesus said:

All mine are yours, and yours are mine, and I am glorified in them. -- John 17:10 (ESV)

Out of context, it seems like these verses contradict each other. In the context of Isaiah 42:8, the issue was the God do not want to share his glory with foreign idols ("carved images"), however as the Father of Jesus, the Son of God, He has no problem with anyone glorifies His Son, because that automatically also glorifies Him.

No parent should be competing with their children, but should instead support their children. For example, a human father is also glorified (honoured) when someone glorifies (honour) his son which means that the father raised his son well.

If God is glorified in him, God will also glorify him in himself, and glorify him at once. -- John 13:32 (ESV)

In the context of John 17, Jesus prayed a few verses earlier:

When Jesus had spoken these words, he lifted up his eyes to heaven, and said, “Father, the hour has come; glorify your Son that the Son may glorify you... John 17:1 (ESV)

In other words, if someone gives glory to Jesus, it also glorifies God the Father of Jesus.

Jesus himself says that it is useless to glorify oneself:

Jesus answered, “If I glorify myself, my glory is nothing. It is my Father Who glorifies me, of Whom you say, ‘He is our God.’ -- John 8:54 (ESV)

Therefore, God the Father has to be distinct from Jesus.