I think you will have much better opportunities getting into medical school with an undergraduate degree from UCLA. Name matters, unfortunately, and UCLA has top-tier STEM programs. If living with your friend is the main reason you’d prefer to go to UCLA, I would say start looking for other reasons UCLA is a better choice and decide from there.
Have you tried looking into financial aid opportunities and/or scholarships? You can also try taking out a loan. Also, keep in mind that the cost of living is quite expensive in California, Los Angeles in particular.