By default, WordPress disallow 2 identical slugs because if you change your permalink structure for custom structure, you should be able to have in your case:
And you can understand, it’s impossible.
The only way is checking by code, you are not in “custom structure” and then save in db with the WordPress method (adding “-2”) and then add a rewrite rule, or find a proper hook to remove it before use in front-end.