@Gargron Ideally the F-droid version should have its own ID, and the Play Store version too if Play App Signing is used (haven't checked if you're using app bundles).
So something like prefixing the ID with org.f-droid, which they don't do by default (except if they detect a gradle flavor, apprently). This will solve some issues related to signature conflict, which some users can experience by using different app repositories.