The network switch that keeps switching more than it should

How I accidentally discovered that one of my home network switches seems unable to decide who its upstream device should be.