Safe to remove this wall and header?
You are not sure if the header above the doorway or the corner to the right of the doorway is load bearing.   I have added yellow highlights to each of these.

Really there are only two ways to know for sure.

Take off the drywall at both spots and take pictures of right above them in the attic and let us inspect.
Get blueprints of the house to an engineer and have them inspect.

There is just no way you can guess based on this picture that the corner to the right isn't load bearing.   In fact I would assume it is until you prove it different.