Which Minecraft to buy?

So I knew Minecraft and watched videos and etc. just like a kid, and played with demo a lot. I am finally about to buy the game so I am looking up for which edition I should buy, 2 hours of search but really couldn’t find anything.

So my main focus is with mods, and by mods I mean like technic launcher. I downloaded it and it doesn’t tell which edition it needs. If I got it correctly there is 2 editions but could be 3, I don’t know if windows 10 and bedrock edition is the same. So should I buy java or bedrock for technic launcher?