Environment variables vs connection references in Power Platform
Both exist so the same managed solution can run across Dev, Test, UAT and Prod without editing. They solve different problems, and mixing them up ends in flows that silently point at the wrong system. Here is the split we enforce.