Two-factor Authentication closed loop. Devices can't approve each other!
If you select your phone number, your phone will receive the text and automatically fill in the code for you. I do not believe that macs are able to receive 2FA codes.