Yep. This is the actual reason behind duplication I've seen 99% of the time.
I don’t think it’s the cost of making the same fix n times, it’s the cost of missing one, or two. Especially if customers notice first.
Right, but you have to consider the cost of incorporating bug fixes without fully testing them. That too can introduce new failures that are noticed by customers first.
If you don't have comprehensive test automation then you have to consider whether you can manually test all the places it is used. If the code is used in multiple products at your company--and you aren't even familiar with some of those products then you can't manually test all the places it is used. Under such circumstances it may be preferable for each team to have duplicate copies of some code. Not ideal, but practical.