Removal of a 2x4 with roof truss built on top
Cutting it flush is the right solution. It's typical that double plates of intersecting walls interlock like that. There's nothing apparent to indicate that the plate continues to be structurally necessary.