Transfer or Self-Supervised? Bridging the Performance Gap in Medical Imaging