Discovery of a directly imaged planet to the young solar analog YSES 2