Hmm really tough, I could give you a few where the second lead gets the girl or some dramas where the female lead takes her time to decide who to choose until much later in the drama, but the rest of the things you have mentioned do not match
Dream High is the closest, but even then I wasn't 100% sure they ended up together in the long run, in my personal opinion it's closer to an open ending, basically her ending up alone