You're looking at the problem backwards.
My admittedly complex solution is to code in Docbook XML, and then the XML to XHTML transformation autogenerates the TOC with correct title. (Docbook XSLT autogenerates the epub nav document and all related material).
With most tools the nav.xhtml file is autogenerated by whatever is H1 in the particular chapter.
To give another example: You can create an epub very easily in LibreOffice or MS Word by putting everything in a single document and then styling the chapter headings with the HEADING style (or something like that). You can run calibre on that -- and as long as the chapter heads have a heading style, it will autogenerate the navigation document from the headings.
My Docbook-based production method includes an autonumber feature -- but I generally turn it off because I'd rather hard code the chapter numbers. Perhaps MSOFFICe/LIBOFFICE let you do autonumbering in the heading element.
The navigation document is usually both human readable and machine readable. Unlike epub2/older Kindle ebooks (where you needed to create a logical TOC (html document) and a ncx file, today's navigation documents serve both purposes.
I have not used transformations on Calibre, but I'm guessing it is theoretically possible to autogenerate these things from within it with xpath/xslt.