A DAC and amplifier circuit is electrically incapable of processing input (on its own.)
Physically unplugging and moving a speaker to a mic input works, sure, but very few devices can do this switching electronically.