Choose either door. The gold key is consumed the moment it is used, whether the choice succeeds or fails.