Excuse me, could you please clarify the distinction between a multiplexer and a demultiplexer in the realm of electronics and digital systems? How do they function differently in terms of their roles and applications? Are there any specific scenarios where one might be preferred over the other? It would be greatly appreciated if you could provide a concise yet comprehensive explanation.