Yep, that looks 1:1 to me. Really.
even if it wasn't intentional (though i'd bet it was, as the similarities are practically 1:1), it still manages to be pretty cathartic since it puts starlight through all the shit she put someone else through for equally cheap and shallow reasons, and forces her to be terrorized into cowing to a villain's demands. it's actually the closest she's ever gotten to karma for any of her bad actions. also, it helped thoroughly illustrate just how unsympathetic a character starlight really is, by putting an in-canon jerk through her same motions.
Spike: [groans] This kinda hurts! Like, real pain!
Discord: Oh, how kind of you to notice. It's the little details that really bring alternate dimensions to life, wouldn't you say?
Derpibooru costs over $25 a day to operate - help support us financially!