Is it better having a bad PhD done or having no PhD?
You can change topics/fields after you graduate. Use what you've learned to find a job (or postdoc or whatever) that fits you better in something you're more interested in.

For the record, nobody who isn't on your committee will read your dissertation. Done is better then good.