The result would be a minority government of CDU and perhaps FDP (if they make it in), tolerated by AfD. Merz would be elected chancellor with AfD votes. That is the future he is looking at right now, if he passes his law in the Bundestag on Friday.