And there was Mary Magdalene, and the other Mary, sitting over against the sepulchre. -- Matthew 27:61 In the end of the sabbath, as it began to dawn toward the first day of the week, came Mary Magdalene and the other Mary to see the sepulchre. -- Matthew 28:1 (Matthew says nothing about the spices one way or the other)
And Mary Magdalene and Mary the mother of Joses beheld where he was laid. -- Mark 15:47 And when the sabbath was past, Mary Magdalene, and Mary the mother of James, and Salome, had bought sweet spices, that they might come and anoint him. -- Mark 16:1
And the women also, which came with him from Galilee, followed after, and beheld the sepulchre, and how his body was laid. And they returned, and prepared spices and ointments; and rested the sabbath day according to the commandment. -- Luke 23:55f. Now upon the first day of the week, very early in the morning, they came unto the sepulchre, bringing the spices which they had prepared, and certain others with them. -- Luke 24:1
Then took they [Joseph and Nicodemus] the body of Jesus, and wound it in linen clothes with the spices, as the manner of the Jews is to bury. -- John 19:40 The first day of the week cometh Mary Magdalene early, when it was yet dark, unto the sepulchre, and seeth the stone taken away from the sepulchre. -- John 20:1 (John has Mary present at least at the cross)
So either Mary came on the first day of the week just to see (Matthew 28:1 and John 20:1), in which case John's account invalidates Mark and Luke, or she came to anoint the body (Mark 16:1 and Luke 24:1), invalidating John.
The tradition is unsettled on this basic point to say the very least, without mentioning other uncertain details.