Mysterious transients unmasked as the bright blue death throes of massive stars