"Trent says that only the sacrament gets us to heaven."
Here's the logic from Trent:
CANON II.-If any one saith, that true and natural water is not of necessity for baptism, and, on that account, wrests, to some sort of metaphor, those words of our Lord Jesus Christ; Unless a man be born again of water and the Holy Ghost; let him be anathema.
CANON V.-If any one saith, that baptism is free, that is, not necessary unto salvation; let him be anathema.
Major 1: Water is necessary for baptism (doctrine)
Major 2: Baptism is necessary for salvation (doctrine)
Minor 1: BOD is not a sacrament, nor does it replace water baptism (fact)
Minor 2: Trent mentions "desire" in the section on justification.
Conclusion 1: Water is necessary, as part of baptism, for salvation.
Conclusion 2: BOD can provide justification but not salvation, because it's not a sacrament.
Conclusion 3: What happens to those who die justified but pre-baptism? Trent does not say. In absence of Trent's guidance, we cannot say that BOD justification provides heaven.