Bad beat is when you put in your chips heavily as a favorite and you lose.
Set over set is considered cooler, not a bad beat.
Same applies to flush over flush, higher straight over straight.
But when playing, sometimes, splitting the pot feels like a bad beat when u were ahead and board saves ur opponent from losing chips to u.