I don’t know if there are any user-visible side effects, but the phone does knows the difference between official and unofficial batteries. Here’s a photo I took of my iPhone 7 showing the internal battery stats immediately after an official replacement during the discount program a couple years ago: https://i.imgur.com/Wo5fSFj.jpg