Would a hole in a heart make it unsuitable for transplantation?
I am assuming you are referring to a patent foramen ovale.

A Google Scholar search for donor heart "patent foramen ovale" returns many results about transplanted hearts with PFO, which suggests to me that this is not a contraindication for donation, though that may be up to the transplant team or hospital. In most cases, PFO is not symptomatic; it could also be potentially repaired at the time of transplant if it was deemed significant.