You can absolutely extinguish a fuel fire early on if the tank has not ruptured. Sand, baking soda, water, dirt, blankets, all work. If the battery on an EV develops an entire short you are not extinguishing it. If it were available, the safest mechanism would be to push it into a hole and bury it