It was a better movie with Bogart than Reagan.
But just suppose Reagan had been the star, would be have been a better President?
Reagan's popularity derives from his movie career was as a Lovable Doofus and he played that role as President.
Suppose Reagan had played Rick, the reluctant but heroic Patriot. President Reagan would have acted Patrioticaly rather then acted doofussly.
He would have been a better President For the sake of a Classicq movie, the whole world gets screwed.