Assume two mods edit a vanilla script for example and both are delivered as bsa. If your load order is modA then modB does that ensure that the script the game will use is the one that came with modB?
This would require a link somehow between esp and bsa imo, am I right? Does naming your bsa the same as your esp help and is recommended (upload to steam does that)?