IMO defaultbrowser's implementation isn't the best because it only looks at the last element of the bundle id (the unique id for each app, also what defbro prints out).
What brave does is actually pretty reasonable, as the full bundle identifier is named normally, just that the last part of it is just a generic name.