A good latch means good attachment to your breast, not just your nipple.
It is a mouthful of breast that positions the nipple far back in your baby’s mouth. Their jaw is wide open and relaxed. When your baby nurses, their jaw moves from front to back, with a visible wave that starts at the chin and ends at the ear. You feel a rhythmic tugging on your nipple. Your baby’s cheeks, chin and nose have good contact with your breast.
A bad latch is when your baby is sucking on your nipple like a bottle nipple
The reason a bad latch doesn’t work is because breastmilk does not flow by mere suction, like with a bottle nipple. Instead milk flows with compressing and massaging your breast and nipple.
Similarly a breast pump doesn’t work by sucking out milk.
The intermittent vacuum stretches and releases the nipple, stimulating the release of oxytocin, contracting the smooth breast muscle, releasing the milk, and collecting it in a bottle. Yes, pumps suck, but they also release, and that is why they are different.
Practice. Practice. Practice.
The easiest way to get comfortable is to lean back against pillows, in a semi-reclining position with your baby in your arms. You can help your baby take the nipple with their mouth and nose very close to your nipple, or you can wait. A well-positioned and relaxed baby opens their mouth wide, and compresses your nipple deeply in their mouth.