As @
fuzzylumpkin suggested you should be able to use an included data transfer utility that's on your new OnePlus phone. But it does require your old Samsung S10 to be functional and the screen showing so you can allow/deny any prompts to allow any file transfer to take place. You can't just do something like transfer your user account data by wishing it to happen, there's going to be some interaction on your part involved.
So more details please about just what you mean by 'broken screen'. Are you implying the display itself is damaged and not visible? Or is it just cracked or otherwise banged up and touch screen interface is still working? Did you have a lock screen enabled on your S10? If using the fingerprint reader or face lock than you might be able to log into your user account but if using a password or pattern without a working screen that's a problem.