Replacing Framing Question
Judging from the photo, that rot seems superficial and as long as you prevent future water infiltration it may be fine to leave it.

I would take a small nail and see how deep the rot is at several different points. Unless it is severe (i.e., maybe 1/3 or more through the wood?) it is probably OK to leave it.