Forget about what your friend says and just think about which type of photography you want to do.
A good compact camera will be as pricey as a new phone with great camera capability. Are you the type of person that likes to share photos with family/friends as you travel? If so, a phone camera may suit you better.
I love photography and it's like a hobby but I am not taking pictures for others. I used to carry my Cannon DSLR which was a drag. Then I tripped with it during a trip (no pun intended), the internal lenses got cracked, so I gave up. Instead of fixing or getting a new one, I invested on a new 15 iPhone pro which has satisfied my photography itch while traveling. I don't carry a laptop with me to process my photos while traveling, so a phone camera has worked well. I take lots of photos, and I like to share a few with my family while I am traveling. I spend my evenings processing/editing photos on my phone (mostly deleting duplicates, minor cropping. I'm against removing people/objects from the background - it's part of the story of the travel!).
But I do miss the features and manual control of a proper camera. I've considered buying a good compact camera, but I always get pushed away due to cost - I may just upgrade my phone every few years. I don't travel that often and I don't really take many photos outside of travel. And then few years will go by and that camera may not be as good anymore.
A friend (who is a professional photographer) told me I need a class to maximize the potential of my phone's camera for the type of photography I do. I have few more months to decide if I will invest on a new compact camera or upgrade my iPhone. Too bad my trip is before the usual release of new iPhones.