Diverse outcomes of planet formation and composition around low-mass stars and brown dwarfs