Compare $new_uri with d()->name and not d()->uri in the Site Rename Check.
Use $new_name instead of $new_uri to avoid confusion.