Basically how you have it set (to my understanding) is asking the encoder to rescale the output to 1080p, and then OBS studio to rescale the final output to 720p.
If you want to output 720p streaming, and 1080p to recording, I am uncertain how that is accomplished.
EDIT: I was incorrect, see below post link for more info.