"The Sadducees denied the existence of angels, the resurrection of the dead, and the doctrine of a future life, with its rewards and punishments. On all these points they differed with the Pharisees. Between the two parties the resurrection was especially a subject of controversy. The Pharisees had been firm believers in the resurrection, but in these discussions their views in regard to the future state became confused. Death became to them an inexplicable mystery. Their inability to meet the arguments of the Sadducees gave rise to continual irritation. The discussions between the two parties usually resulted in angry disputes, leaving them farther apart than before. DA 603.2"
"The same day came to him the Sadducees, which say that there is no resurrection, and asked him,"
The EGW passage directly refers to the Sadducees' denial of the resurrection, which is the central point of Matthew 22:23. It provides further context and explanation.
"For the Sadducees say that there is no resurrection, neither angel, nor spirit: but the Pharisees confess both."
Both passages explicitly state the Sadducees' denial of the resurrection and angels, while the Pharisees affirmed them. The EGW passage expands on the conflict between the two groups.