There are two versions of Minecraft for PC, the Minecraft: Java Edition and Minecraft for Windows 10. Both versions can be downloaded from the official Minecraft website. After you click Get Minecraft you must enter what OS you want to use to play.
Crossplay With Other Platforms or Consoles
Although you will see both Minecraft: Java Edition and Minecraft for Windows 10 offered for Windows PCs, the two editions are not compatible and have a few differences. To cross-play with any other consoles or platforms you need Minecraft for Windows 10. Make sure you look into each version to determine which version is right for your personal needs.
Change the Version Purchased
To change the version purchased, you must contact the correct support team to request a refund and exchange your copy for the correct one. To learn more about this see Can I Swap My Version of Minecraft?