Building the same product with a different codebase is virtually guaranteed to be a disaster. This is the famous "second system effect."
Sometimes the original coders are the only people who know, not only how the software works, but even what it does. Unknown uses include features discovered by users but unknown to the makers, and one-off hacks created to serve a valuable customer.