The SketchUp Ruby API allows to set the same name on multiple scenes. This should to my knowledge not be allowed, and if you try to name a scene the same as another scene in the GUI, the name doesn't change.
6.times { Sketchup.active_model.pages.add }
Sketchup.active_model.pages.each { |p| p.name = "Same" }
6.times { Sketchup.active_model.pages.add("Same") }
Tested in SketchUp 2018 and 2019.