If surgery is necessary (due to heart failure or lack of therapeutic response), then valve repair is preferred over replacement to avoid future prosthetic valve infection due to any continued IV drug use.