Each stage has a unique id. It may happen that a stage has the same name in different pipelines. So the name is not unique but they both have a unique id.
For example:
Name stage "Qualified" exists in pipeline "Pipeline test 1" and "Pipeline test 2".
In "Pipeline test 1" "Qualified" has id 8
In "Pipeline test 2" "Qualified" has id 13