I don't know about Hamilton, but yes, the Rent thing is true. One Song Glory is printed in G, whereas the official score has it in G-flat (a half-step lower). And yes, unfortunately that is common; publishers of vocal selections want the average person to be able to play what's inside it, so they often publish songs in easier keys.