Advancing Medical Image Segmentation With Transformers: Investigations Into Self-Supervised And Supervised Learning