I’d go so far as recommending to wait for getting your Class M, until you can ace the MSF course. I haven’t checked with this one, but there are many that also provide bikes (Buell Blasts are provided where I’m at as one of the local MSF’s has partnered with the local HD dealer), but when I was in Colorado the local community college had a handful of Rebels (or same/similar) for those that didn’t have their own wheels yet.
There are benefits to taking the course on the bike you intend to ride, to be sure.
Since the local MSF offers them here, I send every new rider there before helping them find a used bike cuz as @roomwithaview mentioned, you will drop your first bike. Probably your second as well.
I’ll then spend their first summer riding with them every Sunday, helping as we go. It’s really not until year two or three where you’ve got the muscle memory and experience to truly start enjoying yourself more often than shitting yourself. YMMV of course.