I’ve done some racing and IMHO, by and large races don’t make very good workouts. Either they are too easy for large parts, or, way too hard and usually both in the same race. The power is also often all over the place. It is not a problem mentally randomly and with no warning bouncing around between 0 and 400w as needed in a race because you are totally focused on holding a wheel or making a move. But, have your smart trainer randomly doing that to you for an hour and i don’t care what is on the screen, you’ll be taking a sledgehammer to your trainer before the “race” is over So, even if you did this, you would not want an exact match of the power profile.
That being said, I do most of my TR workouts with a race of some sort on the TV. Often it is a World Tour race but, it is also really fun to do a workout watching on bike GoPro footage from domestic crits. Those videos are all over YouTube with every level represented from FOP pro racers down to local cat 4’s and 5’s. This puts you in the race with is a cool video distraction but you still get your structured workout in.
Tip - the lower category amateur races often make better workout videos since the packs mostly stay together and you don’t often get stuck watching an empty road "leading’ a long break away. Plus it is a little easier to pretend you are actually in the mix