When I had an important exam or something else I really didn't want to miss, I'd set an alarm for a while. But then I just went all in, and never set an alarm. That made me pay more attention to when I was going to bed at night, and the quality of my sleep. When I started working I would set an alarm for about half an hour after I typically woke up, just in case, so I wouldn't be late for work. But after six months of that, I stopped setting my backup alarm as well. I was late for work maybe twice in five years, and it was never significantly late, and it was at times where my body really needed sleep and it probably helped me avoid getting sick. These days I only set an alarm if I have to catch a 6am flight, or if I'm getting up super early to climb a mountain or something.
If you're battling your alarm every day, I highly encourage you to experiment with not setting an alarm.