How to make the doorframe not hideous
With your existing condition I would add another trim profile over the original flat trim that has the nasty beside it. The projection of the new trim profile will help conceal the rough caulk job somebody left. Here is a sketch to help illustrate



It can be any size you choose, I would not make it too big, but if you prefer a larger width, there nothing holding you back.