I’m not an expert on either if these, but I have tried both of them with some success.
My impression is that processing is easier to set up and get going with SP.
p5.js was trickier to get going but did give good results. I think because of the trickier setup that processing would be a better place to start with your students.