You have to spend a first round pick on someone. You want that guy to be a cornerstone of your team for the duration of his NFL career, if possible. Most of all you don't want that player to be a flop/bust.
If you are picking at the top of the first round, yo can usually go offense or defense as everyone is still on the board. As you start to draft later in the round, there are less first round graded players on the board to choose from, so you sort of have to take what is left, whether that is offense or defense.
Martin was an exceptional value pick. He was the best player on the board when we picked. I can understand you wanting a defensive player of his caliber instead, but that may not be the case. You can't revise history.
It is debatable whether we should have paid a guard that much money. That's probably reasonable market for his services. Could we have replaced him next year for 1/5 that money and get an adequate replacement? Maybe so.
But we have spent plenty of of resources on the defense. Lawrence is making more than Martin. We have spent draft picks on defense. Whether they pan out remains to be seen.
Personally I think Marinelli sucks. The whole organization looks much better if we get better performance out of the players we have.