refactor add_conclusions in trymerge.py (#82371)
### Description
There were two very similar functions in trymerge so I tried to refactor so that they was less duplicated code.
### Issue
<!-- Link to Issue ticket or RFP -->
### Testing
<!-- How did you test your change? -->
Ran `python test_trymerge.py` to test
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82371
Approved by: https://github.com/huydhn