If you want the exact trope SML starts heartbroken over the FL, then genuinely falls for her best friend try:
Love O2O
A Little Thing Called First Love
Go Ahead
The Best of You in My Mind
The exact trope is relatively rare in C-dramas, so some are closer matches than others.