Scrivener is pretty impressive, but its Latex capabilities are not as good as those of other formats. I found indexing and bibliography lookup to be spotty. Another reason I found it lacking was when having labelled equations to be later referenced, Scrivener does not seem to have an autocomplete for this.
I am writing right now my PhD thesis with Scrivener, and it's perfect, except (!) reference management is not working. My workaround is to have everything in Zotero, and manually put in the references, hoping I can convert later, in a big dirty manual step.
Wrote a book (93k words) in Scrivener, so can confirm.
Could probably have done it in Obsidian too but didn’t know of it when I was starting. Also compiling features of Scrivener (format the text into industry-accepted formats) is nice