I don't want to appear too critical, but you've just outlined the reasons not to persevere with the write-up. The point is that you are right in every respect : except for the part that doing the last 10% is only a modest amount of work.
With luck, you've got enough momentum to push through to the end smoothly. Otherwise, you might find yourself within 'just a short distance to the summit' and being someone that climbed 90% of the way up Everest.
Perhaps you could get the deep research engagement via an unusually research-focused master's, but there usually isn't scope for that. An M.S. is normally only two years, while 3-5 years is imo the amount of engagement you need with a field to really understand what's going on in research. You need to attend the major conferences in a field more than once, ideally present papers at several of them, present a few more papers after the initial time you do (your first presentation is never the greatest engagement with a research community), and so on. You can get to that as an ABD PhD student, but rarely as a master's student. An M.S. student publishes between 0 and 1 papers typically, and maybe attends 1 or 2 conferences, while a 5th-year PhD student, in CS at least, will more typically have published at least 3 papers in major venues (often 5+) and attended 5+ conferences.
That's all still writing-and-justifying independent research (getting a few conference publications and journal articles), but not quite the same as writing the equivalent of a book, which is a fairly different skill, and one you're not actually likely to use again after getting a Ph.D., since most research is done in conference and journal papers. I wouldn't say it's a complete waste of my time to be writing a thesis, but I wouldn't say it's the most important thing I've done in grad school either, by a long shot--- I value my peer-reviewed publications in the scientific literature much more than I value my institution's thesis/defense process.