Which is much better and less infective peritoneal dialysis or a kidney transplant?

Each has a place. Peritoneal dialysis is a form of renal replacement therapy that requires a tube place in the abdomen to exchange fluids several times a day. A successful kidney transplant gives the best opportunity for patients to return to pre illness levels of activity and well being. It also extends life for many with renal failure compared to dialysis. Infections can occur after either procedure.
PD vs Transplant. Peritoneal dialysis is effective and in experienced clinics has a very low infectious risk. Kidney transplant is effective and infection risk associates with wound and immunosuppression. Infection risk is higher with transplant but transplant is ultimately the better therapy for kidney failure. Doing PD until a transplant is an excellent choice.