The create os command allows you to create OS distributions with the same name. Although this is allowed, it is not recommended and it will cause naming collisions.
Workaround: Always make OS distribution names unique. If you end up having the same name for multiple OS distributions, you should delete the OS distributions and copy them again with unique names. You may have to delete all the corresponding OS profiles used by both OS distributions in order to delete them.