Most will only encounter breaking waves inshore and in shallow water such as a bar, where waves slow steepen and then break. This is more likely wind against current.
It is quite different going through or surfing on waves which may have a bit of white water on top. With these it is best to take them on an angle, and go square down the face, as otherwise you run the risk of broaching.
Trying to cross breaking waves is quite different. If you have ever been in surf, or watched a surf rescue rib you only see them try to take it square on, both ways, indeed avoid it if possible until it has broken.
Crossing bars is dangerous. Generally you will be picking an area where the waves are not breaking ie it is deeper, and coming in at slack, or with the tide and wind. It is probably better to do it under motor and attempt to time it on a wave, as you would have more control.
You would not want to cross in breaking waves, unless you know the bar, have a powerful boat, are an expert, and probably are on a Coastguard rescue.