Doctor told me to give up on breastfeeding ?

I went in for my checkup at 6 weeks postpartum, I’m basically pumping 1 ounce every 2 hours and I wanted help since baby won’t latch on well and I want to help increase my supply.

She told me that at this point my milk is Starting to dry because I didn’t consistently pump in the beginning and that’s it’s nearly impossible to work on it now.

This was so important to me and now I feel defeated, I haven’t pumped in 12 hours because I just feel like it’s pointless. Has anyone regained their milk after this much time? Or is it better to stop and focus this time on bonding with baby in other ways?