by Colin Fraser.
mmmm AFAIK, denying a capability is an effective strategy as Moodle permissions are recalculated every change of page, which slows the change process but maintains higher levels of security.It should not make any difference either way.
What you are showing in this image is another process. I understand the database uses the course shortnames as a key index for search strings, therefore it cannot be duplicated in the database. This is an automatic process and cannot be hacked. If the course is the same, restore the course into the created one or if there is duplication of sections, select the bits that need be used and discard those that do not.