The Markus-Yamabe conjecture for continuous and discontinuous piecewise linear differential systems