I believe that at least twice I have I had problems with templates in situations where knowing which templates were being transcluded into other templates would have been good to know. Strainu described a problem here which sounds to me like it's identical: https://lists.wikimedia.org/pipermail/wikitech-l/2018-March/089576.html
"Say we have an article which includes {{Infobox A}}, which redirects
to {{Infobox B}}, which in turn transcludes {{Infobox}}, which is
implemented using [[Module:Infobox]]. Is there a way to know from the
module (or the {{Infobox}} template) which infobox was actually used
in the article?"
I am creating this task with the hope that a feature which addresses this problem will be implemented.