The Jews of Jesus’ time, as recorded in John’s gospel, when Jesus said he was the Son of God, thought he was saying it for vain glory, but he was saying it to save them from their sins.
Satan tempted him by suggesting he prove it, but, for vain glory, so he refused. This shows it was not a vainglorious blasphemous claim, of being Son of God, but true nonetheless. He only made the claim when it was in service to God and for the salvation of his hearers. That is not vain-glorious blasphemy. It is worship of the Father, doing the Father’s will, in spirit and truth.
Zeal for Trinitarian or Oneness philosophies obscures all this, as did Rabbinical Monotheistic Judaism previously, oblivious to correction by Jesus.