One final piece of the puzzle: this "bug" appears only if I attempt to restore a course in admin mode. Testing this procedure as a teacher works fine, so no worries here, fortunately.
Backup and restore
Can't enrol users to restored course backup (1.9 to 2.4)
This discussion has been locked so you can no longer reply to it.