If you wanna play with friends on XBOX, Phone or Nintendo Switch then I would recommend to get Bedrock. Bedrock has a better performance as well. But if you get Bedrock you cant play with Java players!
If you want to play with mods then definitely get the Java Edition. If you wanna play on Minigame Servers then get Java. Also you dont have to pay for Texturepacks in Java Edition (But I'm not sure if there are free ones in Bedrock) and alot Farms like Iron Farms work differently on Bedrock. Zero Tick Farms arent working on Bedrock!
I would say get Java unless you wanna play with friends on XBOX, Phone, Switch etc.