This reminds me of the philosophical distinction between "sense" and "reference" introduced by Frege.
https://www2.lawrence.edu/fast/ryckmant/On%20Sense%20and%20R...