Purchasing the star requires that you land on the yellow square, not merely occupy it. Calling the Wah!mbulance doesn't actually trigger the effects of landing on the Hospital square, you simply get placed there.