You can remember the meaning of 只好 with this easy mnemonic:
People sometimes make excuses when making a wrong decision by acting as they can only (只) choose a certain option to make themselves feel good (好).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.