I guess you disagree with the likes of [1] then. Presumably it depends on the age and complexity of your project.
[1] https://www.joelonsoftware.com/2000/04/06/things-you-should-...
[1] https://www.joelonsoftware.com/2000/04/06/things-you-should-...
All the rewrites I have done have resulted in leaner codebases with fewer potentials for bugs. I think people take some article one software developer wrote almost two decades ago as gospel, but "second system syndrome" doesn't have to be a syndrome.
This "rewrite" fear is exactly why our banks are stuck on 1970s and 80s code with an almost 60 year old programming language and no one left to take over maintenance. Eventually we need to get over this fear.