It's a solid bike. Before deciding to keep it I would make sure the frame fits you.
Easiest way to figure this out is to use a bike calculator like what you
find here. Get close without going over. If you have to, go down a size from the CC bike calc not up.
If the frame fits you then dial in your seat and stem and you got a solid bike to ride around. Bling it out with some color. Handlebar tape, bottle cages or keep it all black. And then ride the crap out of it.
If the frame doesn't fit, you have 2 choices. If you are mechanically minded and like to tool on things and have the cash to buy some specialty tools you can strip the bike down and buy a new frame and move all the parts over and hawk the old frame on ebay.
The other choice is to sell it as is and put the money toward a new bike. I think you would be lucky to get 2k for this bike as it is. You could probably get 1500 for it. But if you want to sell it lightning fast 1000 - 1200 is a sure bet. (You could get more money parting it out but that takes forever and is a bit of work)
3rd choice is to pay someone to move all the parts over for you but the cost for that doesn't make sense as after all the work is done and parts are bought it would be the cost of a new bike.
You won't find a brand new bike with a carbon frame and ultegra mechanical for less than 2k new and that would be last years model on a slightly off brand name on a black Friday deal. But you can buy a gravel bike or mountain bike or whatever your heart desires. Just make sure you get the right frame size. Even if it's a steal of a deal on your dream bike the wrong sized frame will negate all the joys of bike riding.