I believe I raised the issue of ids generated with the ToC a while back and convinced Kovid to optimize it; now id attributes should not be created if a generated link will go to the first section in a file. So if calibre creates an id you can be sure it is important.