@LeroyG Your workaround gave me an idea.
It looks, first, that there is now an improvement in 25.8.4.2 (I don’t know in which release it appeared): a Chapter TOC starts collection at current level.
Generally such a chapter TOC is inserted immediately after the chapter heading and I prefer not to repeat this heading.
Since I don’t like to tamper with generated contents because the manual operation has to be repeated every time contents is refreshed and I can forget it, I looked to see if I could simulate erasure with proper style configuration. The answer is yes.
I create a paragraph style with name Erasure. It is configured with Hidden attribute in Font Effects. To be on the safe side you can also set spacing above and below to 0 and font size to 2pt (the latter is not necessary).
When you insert the TOC, go to Styles tab and assign Erasure paragraph style to the to-be-eliminated levels.
On screen you can still see the paragraph (if you enable viewing hidden text as I do), but Writer never renders fully hidden paragraphs to the final output. You can check with print preview.
You do it only once. Hidden levels can be changed with a right-click on the TOC and Edit TOC: modify the style association.