Rufnek, but Bogart wouldn't have been cast in Casablanca if he didn't get Raft's leftovers. Casablanca made him a superstar. Petrified Forest got him back into Hollywood and mostly second leads until Raft's stupidity brought him up to the next level.
Could be a "chicken or the egg" debate. He wouldn't have been around to get cast for
Casablanca if not brought out to Hollywood for
The Petrified Forest.
Casablanca may look like a "superstar-maker" now, but it only got named
Casablanca because US troops had just invaded North Africa in the early days of WWII, putting the Casablanca dateline on the front pages of newspapers across the US. Otherwise, it might have been released under its working title, "Everyone Comes (or goes) to Rick's." I'm not sure Raft was really the leading contender for the role, since several actors were mentioned for it, including Ronnie Reagan. I don't think Bogart would have gotten it if not for the earlier success of
The Maltese Falcon that proved he was leading man material. Seems to me
Falcon was a bigger boost to his career than
Casablanca at that time, if only because Bogart had more to do in
Falcon with a much better script and a better director (Huston, even though it was the first film Huston directed). Even so, that was the second remake of
The Maltese Falcon, although by far the best.
There was nothing magical about
Casablanca at the time it was filmed--in fact the "start of a beautiful friendship" ending with Bogart and Claude Rains was filmed and added after the picture had been officially finished. Basically it was just a low-budget (the LA airport stood in for the Casablanca airport in the opening scene, while the scene of Bogart's and Ingrid's parting was played out in front a smaller-than-life-size image of the plane with midgets wearing air crew uniforms) B-grade movie that happened to strike boxoffice gold.