Who can join
Java Edition runs on Windows, macOS and Linux. Bedrock Edition runs on Windows, phones and tablets, Xbox, PlayStation and Switch. If your players are mostly on consoles or phones, they are on Bedrock. If they are PC players who use mods, they are almost certainly on Java.
Customisation
Java servers have the largest ecosystem by far. Paper and Purpur run tens of thousands of plugins, and Fabric and NeoForge run mods and modpacks. Almost every big public server and every popular modpack is on Java.
Bedrock Dedicated Server supports add-ons, behaviour packs and resource packs, but there is no plugin ecosystem comparable to Paper, and mod support is limited by comparison.
Performance and behaviour
The editions differ in small gameplay details, such as redstone behaviour, combat timing and some mob mechanics. Technical players and redstone builders generally prefer Java. Bedrock tends to run well on low-power devices, which is why it is the edition on consoles and phones.
Serving both with Geyser
You do not always have to choose. Geyser is a bridge that lets Bedrock players join a Java server, and Floodgate lets them do it without owning a Java account. The server stays a Java server with all its plugins, and Bedrock players appear alongside everyone else.
Crossplay has trade-offs: some Java-only features do not translate perfectly to Bedrock, and mods that add new blocks will not work for Bedrock players. For a plugin-based server it works very well, and it is the setup most mixed communities choose.