system
Given the following post, respond as if you're commenting on Reddit:
human
[General] Why don't we see more kamikaze attacks in settings with warp technology?

Setting aside the possibility of cost in terms of resources and crew, is there a reason besides dramatic tension that warp-capable vessels are not the ultimate weapon? 

I can imagine the Battle of Endor being fairly swift if two Mon Cal cruisers warped into Endor's shield generator and the DSII's core. It may have been expensive, but the Battle was a high-risk scenario with high casualties regardless. Or what if Starfleet (or perhaps a more nefarious power... the Dominion, the Romulans, etc) built a few dozen warp capable vessels that would detonate inside planets, starbases, etc?
gpt
In Star wars at least this won't work, any kind of large gravity well forcibly pulls a ship out of hyperspace, the empire also has interdictor-class star destroyers which have gravity well generator to stop ships escaping or travelling through hyperspace.

as for other universes, sometimes it works sometimes it doesn't depending on the science.