The idea that you have to choose between breastfeeding and good sleep is a false dichotomy. Here's how they work together:
Sleep training is about falling asleep independently. It teaches baby to go from awake to asleep without being nursed, rocked, or held. It doesn't require eliminating night feeds — it requires baby being placed in the crib awake at the start of the night and (eventually) after night feeds.
You can nurse before bed without nursing TO sleep. Feed baby as the second-to-last step of the bedtime routine (feed, book, then bed) rather than the last step (feed to sleep). Baby still gets the calories and comfort; they just practice the last part of falling asleep on their own.
Night feeds can continue during sleep training. Most sleep consultants recommend keeping 1-2 feeds per night for babies under 6-9 months. You feed when baby is hungry, then place them back in the crib awake (or awake-ish). The skill being taught is falling asleep, not starving through the night.
Night weaning comes later, gradually. When baby is developmentally ready (pediatrician's call), you can slowly reduce night feeds — shorter nursing sessions, longer intervals, and eventually dropping feeds one at a time.