What are the two major differences between a mechanical switch and a transistor?

  1. speed
  2. size
  3. switch has moving parts, transistor has no moving parts
  4. switch contacts wear out from friction and/or electrical arcs, transistors don't
  5. etc.