For example, Hawaii was annexed but not Cuba. What made Hawaii so much more desireable than Cuba?
These are just examples, there are many more.
An annexation of Cuba was just as desirable as the one of Hawaii. If a chance had presented itself to the U.S., Cuba would have been annexed. Although that would depend on factors such as the strength of the anti-imperialist movement and maybe upcoming elections.
Ultimately, it came down to the fact that the Spanish-American War was fought to free Cuba and the impressive record of Cuban rebels against Spain served as a warning sign against annnexation.
If you have follow-up questions, go ahead.
Two main factors that here:
Hawaii is the only island group within hundreds of miles and one of the largest islands in the central Pacific. It's strategically important in trans-pacific trade and military power.
Hawaii in the 19th century was dominated by an American elite originally from New England that came as missionaries and traders in the 1820s. Since the native Hawaiians were decimated by infectious disease, the American elite was able to control the economy and politics of the islands and orient them towards the U.S.
Cuba had none of these advantages since it is not as important geographically, and it's culturally not aligned towards the U.S. Lastly, mosquito born disease made Cuba more difficult to occupy than Hawaii.