Change of Status from F1 OPT

Hello all, I am on F1 OPT and I have job offer from ABC organization and also have another offer from XYZ company, So can i have H1 petition with ABC organization as Change of status and Consular processing with XYZ company? So if my XYZ petition gets picked up in the lottery i straight away change my status (ending my OPT), and ABC gets picked up i will go out of the country and comeback with H1 Stamping. Is this possible?