Mycotheologist,
In the top example, I agree with discodermolide that there is a difference in hydrogen bond accepting abilities, but S also has longer bond lengths and more acute bond angles than O. In the bottom example, which functional group can be a H-bond donor?