The technique suggestions will definitely help you. But it is true that some boats just do not like to track and there are some modification you can make to help performance.
One addition that can help is a small skeg. People often make these for kayaks and attach them either permanently (by drilling through the hull and using stainless screws with rubber washers or sealant for attachment) or to be removable, but making some sort of slotted base that the skeg can attach to. My first kayak was a model that tracked very poorly – I purchased a removable rubber skeg for it that greatly improved that behavior (product no longer made so I can’t give you a link to it.) If you do a Google search on “making skeg for kayak” there are numerous DIY sites and videos on the process.
Another thing that can help is adding ballast. Experiment with 2-liter plastic bottles, filled with water and placed in various positions in the boat. Sometimes the seat is too far forward making the stern too light and wanting to “wander”, literally trying to pass the bow. Adding some weight to sink the stern a little deeper can aid tracking in some boats. In others, weight in the bow or even just behind the seat can aid performance. It’s an easy and free thing to try.
I was paddling with several people at one point and one of them, a very strong young man, was in a rather cheap kayak that was shorter than those we were in (his was 12’ and ours were 15’ and 16’. He was paddling harder than we were but kept falling behind because the boat was zig-zagging with each stroke. I gave him some advice on technique, which helped some but not enough. When we stopped for lunch, I tried paddling his boat and could see how it was responding, even when I was using better strokes. On a hunch, I had him help me fill the small stern hatch with about 10 pounds of flat rocks from the shore. That helped just enough that the boat tracked better.
Here’s an article that discusses both skegs and ballast.