Stealth capabilities of military aircraft (or any vehicles or apparatus for that matter) are not reliant on the form of the object only. Other major contributing factors are materials and joinery. Different materials can be used to absorb radar frequency radiation and joinery of parts is designed such that no favorable condition to for radiation to be reflected back towards its source is created (as in prisms for example.
The main goal of the form of a stealth object is to create a controlled RCS pattern that is directionally optimized such that for certain strategic directions the radar signature of the object is minimal. In other directions radar absorbing materials can be used to minimize the return pulse of the radar signal.
The following study simulates the radar signature of the F-22 Raptor fighter. Please note that this study does not represent the actual radar signature of the F-22 but it can be considered a close enough approximation of that
https://www.hindawi.com/journals/ijap/2018/5435837/
From the diagram you can see that the radar signature has substantial directional variation, so the F-22 is by no means invisible to radar at certain directions. However from directions that are considered necessary for successful missions completion the F22 is very, very difficult to see with radar.
The same applies for faceted designs such as the F-117. The difference between faceted and constant curve designs is that faceted designs have relatively large flat surfaces at certain directions and this provides strong radar return, whereas the curve designs give a return across larger sweep angle but the return is smaller.
For aircraft delivering ordinance it must be taken into account that releasing bombs, missiles and such will most certainly give out the position for the aircraft. Therefore if it for example turns away right after release, the radar signature during that maneuver is not that important, approach and departure signatures are. For loitering surveillance aircraft the design will be different.
Since modern materials and designs can produce low enough radar signatures for necessary directions using curved designs, they are preferred since they are by far superior aerodynamically. The preference for flight performance was actually the case already in the 60's, when the CIA overhead recommaisance program was commissioning a supersonic spy plane.Locheed A-12 was chosen over Convair Kingfish despite having inferior radar properties, because its flight performance was projected to be better. What A-12 and its successor SR-71 lacked in stealth, they made up in pure grunt. They simply were too fast for the missiles of the day.